1.4.0 • Published 5 months ago

@vonage/network-client v1.4.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
5 months ago

Vonage Server SDK for Node.js

GitHub Workflow Status Codecov Latest Release Contributor Covenant License

This is the Vonage Server Client SDK for Node.js used to wrap the authentication headers/signatures for use with Vonage APIs. To use it you will need a Vonage account. Sign up for free at vonage.com.

For full API documentation refer to developer.vonage.com.

Installation

With NPM

npm install @vonage/network-client

With Yarn

yarn add @vonage/network-client

Usage

To create a client, you will need to pass in a @vonage/auth object.

const { Auth } = require('@vonage/auth');
const { Client } = require('@vonage/network-client');

const vonageClient = new Client (new Auth({
        apiKey: API_KEY,
        apiSecret: API_SECRET,
        applicationId: APP_ID,
        privateKey: PRIVATE_KEY_PATH,
    }),
    options,
);

Options

options is any option from @vonage/server-client along with the following that are specific for the network APIs

  • msisdn: string - The MSISDN (phone number) you wish to authenticate to.
  • accessToken: string (optional) - A pre generated Access token for making network API calls
  • expiresIn: string (required if accessToken is passed) - Time until the access token expires

Testing

Run:

npm run test
1.4.0

5 months ago

1.3.2

6 months ago

1.3.1

8 months ago

1.3.0

9 months ago

1.2.0

9 months ago

1.1.0

10 months ago

1.0.1-4

1 year ago

1.0.1-6

1 year ago

1.0.1-5

1 year ago

1.0.1-3

1 year ago

1.0.1-2

1 year ago

1.0.1-1

1 year ago

1.0.1-0

1 year ago