Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@vonage/pricing

Package Overview
Dependencies
Maintainers
42
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vonage/pricing - npm Package Compare versions

Comparing version 1.3.0 to 1.4.0

8

package.json
{
"name": "@vonage/pricing",
"version": "1.3.0",
"version": "1.4.0",
"description": "Vonage API for pricing",

@@ -30,5 +30,5 @@ "homepage": "https://developer.vonage.com",

"dependencies": {
"@vonage/auth": "^1.2.0",
"@vonage/server-client": "^1.3.0",
"@vonage/vetch": "^1.2.0"
"@vonage/auth": "^1.3.0",
"@vonage/server-client": "^1.4.0",
"@vonage/vetch": "^1.3.0"
},

@@ -35,0 +35,0 @@ "devDependencies": {

# Vonage Pricing SDK for Node.js
![GitHub Workflow Status (branch)](https://img.shields.io/github/workflow/status/vonage/vonage-node-sdk/Vonage/3.x?logo=github&style=flat-square&label=Workflow%20Build)
[![Codecov](https://img.shields.io/codecov/c/github/vonage/vonage-node-sdk?label=Codecov&logo=codecov&style=flat-square)](https://codecov.io/gh/Vonage/vonage-server-sdk)
![Latest Release](https://img.shields.io/npm/v/@vonage/pricing)
[![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-v2.0%20adopted-ff69b4.svg?style=flat-square)](../../CODE_OF_CONDUCT.md)
[![License](https://img.shields.io/npm/l/@vonage/pricing?label=License&style=flat-square)][license]
![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/vonage/vonage-node-sdk/ci.yml?branch=3.x) [![Codecov](https://img.shields.io/codecov/c/github/vonage/vonage-node-sdk?label=Codecov&logo=codecov&style=flat-square)](https://codecov.io/gh/Vonage/vonage-server-sdk) ![Latest Release](https://img.shields.io/npm/v/@vonage/pricing?label=%40vonage%2Fpricing&style=flat-square) [![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-v2.0%20adopted-ff69b4.svg?style=flat-square)](../../CODE_OF_CONDUCT.md) [![License](https://img.shields.io/npm/l/@vonage/accounts?label=License&style=flat-square)][license]
<img src="https://developer.nexmo.com/images/logos/vbc-logo.svg" height="48px" alt="Vonage" />
This is the Vonage Pricing SDK for Node.js for use with
[Vonage APIs](https://www.vonage.com/). To use it you will need a Vonage
account. Sign up [for free at vonage.com][signup].
This is the Vonage Pricing SDK for Node.js for use with [Vonage APIs](https://www.vonage.com/). To use it you will need a Vonage account. Sign up [for free at vonage.com][signup].
We recommend using this package as part of the overall [
`@vonage/server-sdk` package](https://github.com/vonage/vonage-node-sdk).
For full API documentation refer to [developer.nexmo.com](https://developer.nexmo.com/).
* [Installation](#installation)
* [Usage](#using-the-vonage-pricing-sdk)
* [Usage](#usage)
* [Promises](#promises)

@@ -27,8 +19,5 @@ * [Testing](#testing)

We recommend using this SDK as part of the overall [
`@vonage/server-sdk` package](https://github.com/vonage/vonage-node-sdk).
Please see the main package for installation.
We recommend using this SDK as part of the overall [`@vonage/server-sdk` package](https://github.com/vonage/vonage-node-sdk). Please see the main package for installation.
You can also use this SDK standalone if you only need access to just the
Pricing API.
You can also use this SDK standalone if you only need access to just the Pricing API.

@@ -47,8 +36,7 @@ ### With NPM

## Using the Vonage Pricing SDK
## Usage
### As part of the Vonage Server SDK
If you are using this SDK as part of the Vonage Server SDK, you can access it
as the `pricing` property off of the client that you instantiate.
If you are using this SDK as part of the Vonage Server SDK, you can access it as the `pricing` property off of the client that you instantiate.

@@ -59,4 +47,4 @@ ```js

const credentials = new Auth({
apiKey: API_KEY,
apiSecret: API_SECRET
apiKey: API_KEY,
apiSecret: API_SECRET
});

@@ -73,7 +61,3 @@ const options = {};

The SDK can be used standalone from the main
[Vonage Server SDK for Node.js](https://github.com/vonage/vonage-node-sdk) if
you only need to use the Pricing API. All you need to do is
`require('@vonage/pricing')`, and use the returned object to create your own
client.
The SDK can be used standalone from the main [Vonage Server SDK for Node.js](https://github.com/vonage/vonage-node-sdk) if you only need to use the Pricing API. All you need to do is `require('@vonage/pricing')`, and use the returned object to create your own client.

@@ -85,4 +69,4 @@ ```js

const credentials = new Auth({
apiKey: API_KEY,
apiSecret: API_SECRET
apiKey: API_KEY,
apiSecret: API_SECRET
});

@@ -94,9 +78,7 @@ const options = {};

Where `credentials` is any option from [`@vonage/auth`](https://github.com/Vonage/vonage-node-sdk/tree/3.x/readme/packages/auth#options),
and `options` is any option from [`@vonage/server-client`](https://github.com/Vonage/vonage-node-sdk/tree/3.x/readme/packages/server-client#options)
Where `credentials` is any option from [`@vonage/auth`](https://github.com/Vonage/vonage-node-sdk/blob/3.x/packages/auth/README.md#options), and `options` is any option from [`@vonage/server-client`](https://github.com/Vonage/vonage-node-sdk/blob/3.x/packages/server-client/README.md#options)
## 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.
Most methods that interact with the Vonage API uses Promises. You can either resolve these yourself, or use `await` to wait for a response.

@@ -103,0 +85,0 @@ ```js

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc