3.14.0 • Published 2 months ago

@vonage/server-sdk v3.14.0

Weekly downloads
1,110
License
Apache-2.0
Repository
github
Last release
2 months ago

Vonage Server SDK for Node.js

GitHub Workflow Status Codecov Latest Release Contributor Covenant License

This is the Node.JS Server SDK for 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/server-sdk

With Yarn

yarn add @vonage/server-sdk

Constructor

const { Vonage } = require('@vonage/server-sdk');

const vonage = new Vonage(credentials, options);

Where credentials is any option from @vonage/auth, and options is any option from @vonage/server-client

Promises

Most methods that interact with the Vonage API uses Promises. You can either resolve these yourself, or use await to wait for a response.

const resp = await vonage.sms.send({
    to: '15552220000',
    from: '15559992222',
    text: 'This is a test',
});

Testing

Run:

npm run test

Or to continually watch and run tests as you change the code:

npm run test-watch

Examples

See the Vonage Node Quickstarts repo.

References

You can find more information for each product below:

Supported APIs

The following is a list of Vonage APIs and whether the Node Server SDK provides support for them:

APIAPI Release StatusSupported?
Account APIGeneral Availability
Alerts APIGeneral Availability
Application APIGeneral Availability
Audit APIBeta
Conversation APIBeta
Dispatch APIBeta
External Accounts APIBeta
Media APIBeta
Messages APIBeta
Number Insight V2 APIBeta
Number Insights APIGeneral Availability
Number Management APIGeneral Availability
Pricing APIGeneral Availability
Proactive Connect APIBeta
Redact APIDeveloper Preview
Reports APIBeta
SMS APIGeneral Availability
Sub AccountsBeta
UsersGeneral Availability
Verify APIGeneral Availability
Verify v2 APIGeneral Availability
Video APIGeneral Availability
Voice APIGeneral Availability

V2 Migrations

While most of the V2 functions have been ported into their own package, some of the functions have not been ported or were removed. Below is a list of those changes:

V2 FunctionStatusNote
vonage.conversionREMOVED
vonage.conversationNot ImplementedThis was only released as a beta package
vonage.appMovedMoved to Applications
vonage.filesMovedMove to ServerClient
vonage.messageMovedMoved to SMS
vonage.generateJwtMovedWas moved to JWT
vonage.generateSignatureMovedWas moved to SMS and Voice
vonage.callsMovedWas moved to Voice
vonage.credentialsUpdatedOptions can be found in Server Client
vonage.optionsUpdatedOptions can be found in Server Client
vonage.options.httpClientRemoved
vonage.options.userAgentMovedOptions can be found in Server Client

For more information, check out each packages migration guide.

3.14.0

2 months ago

3.13.1

3 months ago

3.12.2

4 months ago

3.12.1

4 months ago

3.12.0

4 months ago

3.11.0

5 months ago

3.10.2

5 months ago

3.9.3

8 months ago

3.9.2

8 months ago

3.9.1

9 months ago

3.7.2

9 months ago

3.8.0

9 months ago

3.10.0

7 months ago

3.8.1

9 months ago

3.7.1

9 months ago

3.7.0

9 months ago

3.6.0

11 months ago

3.5.1

12 months ago

3.5.0

12 months ago

3.4.0

1 year ago

3.2.0

1 year ago

3.0.20

1 year ago

3.0.19

1 year ago

3.3.0

1 year ago

3.1.2

1 year ago

3.1.1

1 year ago

3.1.0

1 year ago

2.12.0-beta.3

2 years ago

3.0.0-alpha.8

2 years ago

3.0.12

1 year ago

3.0.4

1 year ago

3.0.13

1 year ago

3.0.3

1 year ago

3.0.10

1 year ago

3.0.2

1 year ago

3.0.11

1 year ago

3.0.1

1 year ago

3.0.16

1 year ago

3.0.8

1 year ago

3.0.14

1 year ago

3.0.6

1 year ago

3.0.15

1 year ago

3.0.5

1 year ago

3.0.0

1 year ago

2.11.3

1 year ago

3.0.18

1 year ago

3.0.9

1 year ago

3.0.0-alpha.7

2 years ago

3.0.0-alpha.1

2 years ago

3.0.0-alpha.3

2 years ago

3.0.0-alpha.2

2 years ago

3.0.0-alpha.5

2 years ago

3.0.0-alpha.4

2 years ago

2.12.0-beta.1

2 years ago

2.12.0-beta.2

2 years ago

2.11.2

2 years ago

2.12.0-beta.0

2 years ago

2.11.0

2 years ago

2.11.1

2 years ago

2.10.11

2 years ago

2.10.10

3 years ago

2.10.9

3 years ago

2.10.8

3 years ago

2.10.7-beta-2

3 years ago

2.10.7

3 years ago

2.10.7-beta

3 years ago

2.10.6

3 years ago

2.10.6-beta2

3 years ago

2.10.6-beta

3 years ago

2.10.5

3 years ago

2.10.5-beta-2

3 years ago

2.10.5-beta

3 years ago

2.10.4-beta

3 years ago

2.10.4

3 years ago

2.10.3

4 years ago

2.10.2

4 years ago

2.10.1

4 years ago

2.10.0

4 years ago