npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@datafire/nexmo_external_accounts

v3.0.0

Published

DataFire integration for External Accounts API

Readme

@datafire/nexmo_external_accounts

Client library for External Accounts API

Installation and Usage

npm install --save @datafire/nexmo_external_accounts
let nexmo_external_accounts = require('@datafire/nexmo_external_accounts').create({
  username: "",
  password: "",
  bearerAuth: ""
});

.then(data => {
  console.log(data);
});

Description

The External Accounts API is used to manage accounts for Viber Service Messages, Facebook Messenger and Whatsapp for use in the Messages and Dispatch APIs.

Actions

GetAllAccounts

Retrieve all accounts you own

nexmo_external_accounts.GetAllAccounts({}, context)

Input

  • input object
    • provider string (values: messenger, viber_service_msg, whatsapp): Filter by provider
    • page_number integer: Page number of the results
    • page_size integer: Page size of the results

Output

  • output object
    • _embedded array
    • _links object
      • first object
        • href string
      • last object
        • href string
      • next object
        • href string
      • prev object
        • href string
      • self object
        • href string
    • page_number integer
    • page_size integer

CreateMessengerAccount

Create a Messenger account

nexmo_external_accounts.CreateMessengerAccount({
  "body": {
    "external_id": "",
    "access_token": ""
  }
}, context)

Input

  • input object
    • body required object
      • access_token required string: This is the Facebook Page token. You can obtain the token using one of the following methods Use our tool to link a page to your Vonage API account https://messenger.nexmo.com Following the official token reference
      • applications array: Contains a list of application IDs which are linked to the account. There is just one application allowed per an account. The application type must be type "messages". For more information see Application API spec
        • items string
      • external_id required string: This is the unique identifier within the provider's domain. In this case it is the Page ID for your Facebook Page. Go to your Facebook Page, click "Settings", click "Messenger platform " scroll down to "Messenger link" to find your Page ID.
      • name string: Custom account name

Output

DeleteMessengerAccount

Delete a Messenger account

nexmo_external_accounts.DeleteMessengerAccount({
  "external_id": ""
}, context)

Input

  • input object
    • external_id required string: External id of the account you want to delete. In this case it is the Facebook Page ID.

Output

Output schema unknown

GetMessengerAccount

Retrieve a Messenger account

nexmo_external_accounts.GetMessengerAccount({
  "external_id": ""
}, context)

Input

  • input object
    • external_id required string: External id of the account you want to retrieve. In this case it is the Facebook Page ID.

Output

UpdateMessengerAccount

Update a Messenger account

nexmo_external_accounts.UpdateMessengerAccount({
  "external_id": "",
  "body": {}
}, context)

Input

  • input object
    • external_id required string: External id of the account you want to update. In this case it is the Facebook Page ID.
    • body required object
      • access_token string
      • applications array
        • items string
      • name string: The new account name

Output

  • output object
    • access_token required string: The provider access token
    • api_key required string: The external api key for this account
    • applications array: The array of associated application ids
      • items string
    • external_id required string: The external identifier for this account. In this case it is the Facebook Page ID.
    • name string: The account name
    • provider required string: The provider (will be messenger).

GetVSMAccount

Retrieve a Viber Service Message account

nexmo_external_accounts.GetVSMAccount({
  "external_id": ""
}, context)

Input

  • input object
    • external_id required string: External id of the account you want to retrieve. In this case it will be your Viber Service Message ID.

Output

GetWAAccount

Retrieve a Whatsapp account

nexmo_external_accounts.GetWAAccount({
  "external_id": ""
}, context)

Input

  • input object
    • external_id required string: External id of the account you want to retrieve. In this case it will be the WhatsApp number.

Output

LinkApplication

Link application to an account

nexmo_external_accounts.LinkApplication({
  "provider": "",
  "external_id": "",
  "body": {
    "application": ""
  }
}, context)

Input

  • input object
    • provider required string (values: messenger, viber_service_msg, whatsapp): Provider of the account you want to assign an application to
    • external_id required string: External id of the account you want to assign an application to. This is channel dependent. For Facebook it will be your Facebook Page ID, for Viber your Viber Service Message ID and for WhatsApp your WhatsApp number.
    • body required object
      • application required string: There is just one application allowed per an account. The application type must be type "messages". For more information please see Application API Spec

Output

UnliWithoutApplicationnkApplication

Unlink application from an account

nexmo_external_accounts.UnliWithoutApplicationnkApplication({
  "provider": "",
  "external_id": "",
  "application_id": ""
}, context)

Input

  • input object
    • provider required string (values: messenger, viber_service_msg, whatsapp): Provider of the account you want to unlink an application from
    • external_id required string: External id of the account you want to unlink an application from
    • application_id required string: Id of the application you want to unlink

Output

Output schema unknown

Definitions

401Response

  • 401Response object
    • detail string
    • title string

403Response

  • 403Response object
    • title string

AccountResponse

  • AccountResponse object
    • access_token string: The provider access token (only for messenger)
    • api_key required string: The external api key for this account
    • applications array: The array of associated application ids
      • items string
    • external_id required string: The external identifier for this account
    • name string: The account name
    • provider required string (values: messenger, viber_service_msg, whatsapp): The provider (will be one of messenger, viber_service_msg, whatsapp).

GetAllAccountResponse

  • GetAllAccountResponse
    • access_token required string: The provider access token
    • api_key required string: The external api key for this account
    • applications array: The array of associated application ids
      • items string
    • external_id required string: The external identifier for this account
    • name string: The account name
    • provider required string: The provider (will be messenger).
    • api_key required string: The external api key for this account
    • applications array: The array of associated application ids
      • items string
    • external_id required string: The external identifier for this account
    • name string: The account name
    • provider required string: The provider (will be viber_service_msg).
    • api_key required string: The external api key for this account
    • applications array: The array of associated application ids
      • items string
    • external_id required string: The external identifier for this account
    • name string: The account name
    • provider required string: The provider (will be whatsapp).

MessengerAccountResponse

  • MessengerAccountResponse object
    • access_token required string: The provider access token
    • api_key required string: The external api key for this account
    • applications array: The array of associated application ids
      • items string
    • external_id required string: The external identifier for this account
    • name string: The account name
    • provider required string: The provider (will be messenger).

VSMAccountResponse

  • VSMAccountResponse object
    • api_key required string: The external api key for this account
    • applications array: The array of associated application ids
      • items string
    • external_id required string: The external identifier for this account
    • name string: The account name
    • provider required string: The provider (will be viber_service_msg).

WAAccountResponse

  • WAAccountResponse object
    • api_key required string: The external api key for this account
    • applications array: The array of associated application ids
      • items string
    • external_id required string: The external identifier for this account
    • name string: The account name
    • provider required string: The provider (will be whatsapp).