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

nexmo

Package Overview
Dependencies
Maintainers
5
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nexmo - npm Package Compare versions

Comparing version 2.5.2-beta-1 to 2.5.2

lib/Pricing.js

7

CHANGELOG.md

@@ -5,2 +5,9 @@ # Changelog

## 2.5.2
- ADDED: Pricing API support
## 2.5.1
- ADDED: typings for Verify API
- ADDED: Applications API V2 support
## 2.4.2

@@ -7,0 +14,0 @@ - Added message signing for for sending SMS

38

lib/App.js

@@ -15,2 +15,6 @@ "use strict";

var _Utils = require("./Utils");
var _Utils2 = _interopRequireDefault(_Utils);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

@@ -130,2 +134,4 @@

return function (response) {
response.count = response.total_items;
response.page_index = response.page;
for (var i in response._embedded.applications) {

@@ -186,23 +192,4 @@ response._embedded.applications[i] = applicationResponseHandler(response._embedded.applications[i]);

if ((typeof params === "undefined" ? "undefined" : _typeof(params)) !== "object") {
var config = {
host: "api.nexmo.com",
path: App.PATH + "/" + params,
method: "GET",
headers: {
"Content-Type": "application/json",
Authorization: "Basic " + Buffer.from(authorization).toString("base64")
}
};
responseParser = this._convertApplicationResponse;
} else {
var config = {
host: "api.nexmo.com",
path: App.PATH,
method: "GET",
body: JSON.stringify(params),
headers: {
"Content-Type": "application/json",
Authorization: "Basic " + Buffer.from(authorization).toString("base64")
}
};
responseParser = this._convertApplicationListResponse(this._convertApplicationResponse);

@@ -215,2 +202,13 @@ }

var config = {
host: "api.nexmo.com",
path: _Utils2.default.createPathWithQuery(App.PATH, params),
method: "GET",
body: undefined,
headers: {
"Content-Type": "application/json",
Authorization: "Basic " + Buffer.from(authorization).toString("base64")
}
};
this.options.httpClient.request(config, callback, callback, false, responseParser);

@@ -281,2 +279,2 @@ }

module.exports = exports["default"];
//# sourceMappingURL=data:application/json;charset=utf-8;base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YmUgdXNlZCB3aGVuIGludGVyYWN0aW5nIHdpdGggdGhlIEFQSS5cbiAgICogQHBhcmFtIHtPYmplY3R9IG9wdGlvbnNcbiAgICogICAgQWRkaXRpb24gQXBwIG9wdGlvbnMuXG4gICAqL1xuICBjb25zdHJ1Y3RvcihjcmVkZW50aWFscywgb3B0aW9ucyA9IHt9KSB7XG4gICAgdGhpcy5jcmVkcyA9IGNyZWRlbnRpYWxzO1xuICAgIHRoaXMub3B0aW9ucyA9IG9wdGlvbnM7XG5cbiAgICAvLyBVc2VkIHRvIGZhY2lsaXRhdGUgdGVzdGluZyBvZiB0aGUgY2FsbCB0byB0aGUgdW5kZXJseWluZyBvYmplY3RcbiAgICB0aGlzLl9uZXhtbyA9IHRoaXMub3B0aW9ucy5uZXhtb092ZXJyaWRlIHx8IG5leG1vO1xuICB9XG5cbiAgX2NvbnZlcnRNZXRob2RTaWduYXR1cmUobmFtZSwgdHlwZSwgYW5zd2VyVXJsLCBldmVudFVybCwgb3B0aW9ucykge1xuICAgIGxldCBjYXBhYmlsaXR5ID0ge307XG4gICAgc3dpdGNoICh0eXBlKSB7XG4gICAgICBjYXNlIFwidm9pY2VcIjpcbiAgICAgICAgY2FwYWJpbGl0eSA9IHtcbiAgICAgICAgICB2b2ljZToge1xuICAgICAgICAgICAgd2ViaG9va3M6IHtcbiAgICAgICAgICAgICAgYW5zd2VyX3VybDoge1xuICAgICAgICAgICAgICAgIGFkZHJlc3M6IGFuc3dlclVybCxcbiAgICAgICAgICAgICAgICBodHRwX21ldGhvZDogXCJHRVRcIlxuICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICBldmVudF91cmw6IHtcbiAgICAgICAgICAgICAgICBhZGRyZXNzOiBldmVudFVybCxcbiAgICAgICAgICAgICAgICBodHRwX21ldGhvZDogXCJQT1NUXCJcbiAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuICAgICAgICAgIH1cbiAgICAgICAgfTtcbiAgICAgICAgYnJlYWs7XG4gICAgICBjYXNlIFwibWVzc2FnZXNcIjpcbiAgICAgICAgY2FwYWJpbGl0eSA9IHtcbiAgICAgICAgICBtZXNzYWdlczoge1xuICAgICAgICAgICAgd2ViaG9va3M6IHtcbiAgICAgICAgICAgICAgaW5ib3VuZF91cmw6IHtcbiAgICAgICAgICAgICAgICBhZGRyZXNzOiBvcHRpb25zLmluYm91bmRfdXJsLFxuICAgICAgICAgICAgICAgIGh0dHBfbWV0aG9kOiBcIlBPU1RcIlxuICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICBzdGF0dXNfdXJsOiB7XG4gICAgICAgICAgICAgICAgYWRkcmVzczogb3B0aW9ucy5zdGF0dXNfdXJsLFxuICAgICAgICAgICAgICAgIGh0dHBfbWV0aG9kOiBcIlBPU1RcIlxuICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgICAgfVxuICAgICAgICB9O1xuICAgICAgICBicmVhaztcbiAgICAgIGNhc2UgXCJydGNcIjpcbiAgICAgICAgY2FwYWJpbGl0eSA9IHtcbiAgICAgICAgICBydGM6IHtcbiAgICAgICAgICAgIHdlYmhvb2tzOiB7XG4gICAgICAgICAgICAgIGV2ZW50X3VybDoge1xuICAgICAgICAgICAgICAgIGFkZHJlc3M6IGV2ZW50VXJsLFxuICAgICAgICAgICAgICAgIGh0dHBfbWV0aG9kOiBcIlBPU1RcIlxuICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgICAgfVxuICAgICAgICB9O1xuICAgICAgICBicmVhaztcbiAgICB9XG5cbiAgICByZXR1cm4ge1xuICAgICAgbmFtZTogbmFtZSxcbiAgICAgIGNhcGFiaWxpdGllczogY2FwYWJpbGl0eVxuICAgIH07XG4gIH1cblxuICBfY29udmVydEFwcGxpY2F0aW9uUmVzcG9uc2UoYXBwbGljYXRpb24pIHtcbiAgICBmb3IgKGxldCBjYXBhYmlsaXR5IGluIGFwcGxpY2F0aW9uLmNhcGFiaWxpdGllcykge1xuICAgICAgYXBw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AgICAgIG1ldGhvZDogXCJHRVRcIixcbiAgICAgICAgYm9keTogSlNPTi5zdHJpbmdpZnkocGFyYW1zKSxcbiAgICAgICAgaGVhZGVyczoge1xuICAgICAgICAgIFwiQ29udGVudC1UeXBlXCI6IFwiYXBwbGljYXRpb24vanNvblwiLFxuICAgICAgICAgIEF1dGhvcml6YXRpb246IGBCYXNpYyAke0J1ZmZlci5mcm9tKGF1dGhvcml6YXRpb24pLnRvU3RyaW5nKFxuICAgICAgICAgICAgXCJiYXNlNjRcIlxuICAgICAgICAgICl9YFxuICAgICAgICB9XG4gICAgICB9O1xuICAgICAgcmVzcG9uc2VQYXJzZXIgPSB0aGlzLl9jb252ZXJ0QXBwbGljYXRpb25MaXN0UmVzcG9uc2UoXG4gICAgICAgIHRoaXMuX2NvbnZlcnRBcHBsaWNhdGlvblJlc3BvbnNlXG4gICAgICApO1xuICAgIH1cblxuICAgIGlmICh2Mikge1xuICAgICAgcmVzcG9uc2VQYXJzZXIgPSBudWxsO1xuICAgIH1cblxuICAgIHRoaXMub3B0aW9ucy5odHRwQ2xpZW50LnJlcXVlc3QoXG4gICAgICBjb25maWcsXG4gICAgICBjYWxsYmFjayxcbiAgICAgIGNhbGxiYWNrLFxuICAgICAgZmFsc2UsXG4gICAgICByZXNwb25zZVBhcnNlclxuICAgICk7XG4gIH1cblxuICAvKipcbiAgICogVE9ETzogZG9jdW1lbnRcbiAgICovXG4gIHVwZGF0ZShhcHBJZCwgbmFtZSwgdHlwZSwgYW5zd2VyVXJsLCBldmVudFVybCwgb3B0aW9ucywgY2FsbGJhY2spIHtcbiAgICBsZXQgcGFyYW1zID0ge307XG4gICAgbGV0IHJlc3BvbnNlUGFyc2VyID0gbnVsbDtcbiAgICBpZiAoYXJndW1lbnRzLmxlbmd0aCA+IDMpIHtcbiAgICAgIHBhcmFtcyA9IEpTT04uc3RyaW5naWZ5KFxuICAgICAgICB0aGlzLl9jb252ZXJ0TWV0aG9kU2lnbmF0dXJlKG5hbWUsIHR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mV0fWA7XG5cbiAgICB2YXIgY29uZmlnID0ge1xuICAgICAgaG9zdDogXCJhcGkubmV4bW8uY29tXCIsXG4gICAgICBwYXRoOiBgJHtBcHAuUEFUSH0vJHthcHBJZH1gLFxuICAgICAgbWV0aG9kOiBcIkRFTEVURVwiLFxuICAgICAgYm9keTogXCJ7fVwiLFxuICAgICAgaGVhZGVyczoge1xuICAgICAgICBcIkNvbnRlbnQtVHlwZVwiOiBcImFwcGxpY2F0aW9uL2pzb25cIixcbiAgICAgICAgQXV0aG9yaXphdGlvbjogYEJhc2ljICR7QnVmZmVyLmZyb20oYXV0aG9yaXphdGlvbikudG9TdHJpbmcoXCJiYXNlNjRcIil9YFxuICAgICAgfVxuICAgIH07XG5cbiAgICB0aGlzLm9wdGlvbnMuaHR0cENsaWVudC5yZXF1ZXN0KGNvbmZpZywgY2FsbGJhY2spO1xuICB9XG59XG5cbmV4cG9ydCBkZWZhdWx0IEFwcDtcbiJdfQ==
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9BcHAuanMiXSwibmFtZXMiOlsiQXBwIiwiY3JlZGVudGlhbHMiLCJvcHRpb25zIiwiY3JlZHMiLCJfbmV4bW8iLCJuZXhtb092ZXJyaWRlIiwibmFtZSIsInR5cGUiLCJhbnN3ZXJVcmwiLCJldmVudFVybCIsImNhcGFiaWxpdHkiLCJ2b2ljZSIsIndlYmhvb2tzIiwiYW5zd2VyX3VybCIsImFkZHJlc3MiLCJodHRwX21ldGhvZCIsImV2ZW50X3VybCIsIm1lc3NhZ2VzIiwiaW5ib3VuZF91cmwiLCJzdGF0dXNfdXJsIiwicnRjIiwiY2FwYWJpbGl0aWVzIiwiYXBwbGljYXRpb24iLCJ3ZWJob29rIiwicHVzaCIsImVuZHBvaW50X3R5cGUiLCJlbmRwb2ludCIsImFwcGxpY2F0aW9uUmVzcG9uc2VIYW5kbGVyIiwicmVzcG9uc2UiLCJjb3V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d2VyVXJsLCBldmVudFVybCwgb3B0aW9ucykge1xuICAgIGxldCBjYXBhYmlsaXR5ID0ge307XG4gICAgc3dpdGNoICh0eXBlKSB7XG4gICAgICBjYXNlIFwidm9pY2VcIjpcbiAgICAgICAgY2FwYWJpbGl0eSA9IHtcbiAgICAgICAgICB2b2ljZToge1xuICAgICAgICAgICAgd2ViaG9va3M6IHtcbiAgICAgICAgICAgICAgYW5zd2VyX3VybDoge1xuICAgICAgICAgICAgICAgIGFkZHJlc3M6IGFuc3dlclVybCxcbiAgICAgICAgICAgICAgICBodHRwX21ldGhvZDogXCJHRVRcIlxuICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICBldmVudF91cmw6IHtcbiAgICAgICAgICAgICAgICBhZGRyZXNzOiBldmVudFVybCxcbiAgICAgICAgICAgICAgICBodHRwX21ldGhvZDogXCJQT1NUXCJcbiAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuICAgICAgICAgIH1cbiAgICAgICAgfTtcbiAgICAgICAgYnJlYWs7XG4gICAgICBjYXNlIFwibWVzc2FnZXNcIjpcbiAgICAgICAgY2FwYWJpbGl0eSA9IHtcbiAgICAgICAgICBtZXNzYWdlczoge1xuICAgICAgICAgICAgd2ViaG9va3M6IHtcbiAgICAgICAgICAgICAgaW5ib3VuZF91cmw6IHtcbiAgICAgICAgICAgICAgICBhZGRyZXNzOiBvcHRpb25zLmluYm91bmRfdXJsLFxuICAgICAgICAgICAgICAgIGh0dHBfbWV0aG9kOiBcIlBPU1RcIlxuICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICBzdGF0dXNfdXJsOiB7XG4gICAgICAgICAgICAgICAgYWRkcmVzczogb3B0aW9ucy5zdGF0dXNfdXJsLFxuICAgICAgICAgICAgICAgIGh0dHBfbWV0aG9kOiBcIlBPU1RcIlxuICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgICAgfVxuICAgICAgICB9O1xuICAgICAgICBicmVhaztcbiAgICAgIGNhc2UgXCJydGNcIjpcbiAgICAgICAgY2FwYWJpbGl0eSA9IHtcbiAgICAgICAgICBydGM6IHtcbiAgICAgICAgICAgIHdlYmhvb2tzOiB7XG4gICAgICAgICAgICAgIGV2ZW50X3VybDoge1xuICAgICAgICAgICAgICAgIGFkZHJlc3M6IGV2ZW50VXJsLFxuICAgICAgICAgICAgICAgIGh0dHBfbWV0aG9kOiBcIlBPU1RcIlxuICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgICAgfVxuICAgICAgICB9O1xuICAgICAgICBicmVhaztcbiAgICB9XG5cbiAgICByZXR1cm4ge1xuICAgICAgbmFtZTogbmFtZSxcbiAgICAgIGNhcGFiaWxpdGllczogY2FwYWJpbGl0eVxuICAgIH07XG4gIH1cblxuICBfY29udmVydEFwcGxpY2F0aW9uUmVzcG9uc2UoYXBwbGljYXRpb24pIHtcbiAgICBmb3IgKGxldCBjYXBhYmlsaXR5IGluIGFwcGxpY2F0aW9uLmNhcGFiaWxpdGllcykge1xuICAgICAgYXBwbGljYXRpb25bY2FwYWJpbGl0eV0gPSB7XG4gICAgICAgIHdlYmhvb2tzOiBbXVxuICAgICAgfTtcbiAgICAgIGZvciAobGV0IHdlYmhvb2sgaW4gYXBwbGljYXRpb24uY2FwYWJpbGl0aWVzW2NhcGFiaWxpdHldLndlYmhvb2tzKSB7XG4gICAgICAgIGFwcGxpY2F0aW9uW2NhcGFiaWxpdHldLndlYmhvb2tzLnB1c2goe1xuICAgICAgICAgIGVuZHBvaW50X3R5cGU6IHdlYmhvb2ssXG4gICAgICAgICAgZW5kcG9pbnQ6XG4gICAgICAgICAgICBhcHBsaWNhdGlvbi5jYXBhYmlsaXRpZXNbY2FwYWJpbGl0eV0ud2ViaG9va3Nbd2ViaG9va10uYWRkcmVzcyxcbiAgICAgICAgICBodHRwX21ldGhvZDpcbiAgICAgICAgICAgIGFwcGxpY2F0aW9uLmNhcGFiaWxpdGllc1tjYXBhYmlsaXR5XS53ZWJob29rc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xcbiAgICAgIGNhbGxiYWNrLFxuICAgICAgY2FsbGJhY2ssXG4gICAgICBmYWxzZSxcbiAgICAgIHJlc3BvbnNlUGFyc2VyXG4gICAgKTtcbiAgfVxuXG4gIC8qKlxuICAgKiBUT0RPOiBkb2N1bWVudFxuICAgKi9cbiAgZGVsZXRlKGFwcElkLCBjYWxsYmFjaykge1xuICAgIGNvbnN0IGF1dGhvcml6YXRpb24gPSBgJHt0aGlzLmNyZWRzLmFwaUtleX06JHt0aGlzLmNyZWRzLmFwaVNlY3JldH1gO1xuXG4gICAgdmFyIGNvbmZpZyA9IHtcbiAgICAgIGhvc3Q6IFwiYXBpLm5leG1vLmNvbVwiLFxuICAgICAgcGF0aDogYCR7QXBwLlBBVEh9LyR7YXBwSWR9YCxcbiAgICAgIG1ldGhvZDogXCJERUxFVEVcIixcbiAgICAgIGJvZHk6IFwie31cIixcbiAgICAgIGhlYWRlcnM6IHtcbiAgICAgICAgXCJDb250ZW50LVR5cGVcIjogXCJhcHBsaWNhdGlvbi9qc29uXCIsXG4gICAgICAgIEF1dGhvcml6YXRpb246IGBCYXNpYyAke0J1ZmZlci5mcm9tKGF1dGhvcml6YXRpb24pLnRvU3RyaW5nKFwiYmFzZTY0XCIpfWBcbiAgICAgIH1cbiAgICB9O1xuXG4gICAgdGhpcy5vcHRpb25zLmh0dHBDbGllbnQucmVxdWVzdChjb25maWcsIGNhbGxiYWNrKTtcbiAgfVxufVxuXG5leHBvcnQgZGVmYXVsdCBBcHA7XG4iXX0=

@@ -13,2 +13,6 @@ "use strict";

var _Utils = require("./Utils");
var _Utils2 = _interopRequireDefault(_Utils);
var _Members = require("./Members");

@@ -18,2 +22,6 @@

var _Events = require("./Events");
var _Events2 = _interopRequireDefault(_Events);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

@@ -55,4 +63,6 @@

// Used to facilitate testing of the call to the underlying object
this._nexmo = this.options.nexmoOverride || _index2.default;
/**
* @type Events
*/
this.events = new _Events2.default(this.creds, this.options);
}

@@ -98,3 +108,13 @@

value: function get(query, callback) {
this._nexmo.getWithQuery(Conversations.PATH, query, this.creds, this.options, callback);
var config = {
host: "api.nexmo.com",
path: _Utils2.default.createPathWithQuery(Conversations.PATH, query),
method: "GET",
body: undefined,
headers: {
"Content-Type": "application/json",
Authorization: "Bearer " + this.creds.generateJwt()
}
};
this.options.httpClient.request(config, callback);
}

@@ -105,3 +125,3 @@

*
* @param {string} [conversationId] - The unique identifier for the conversation to update.
* @param {string} conversationId - The unique identifier for the conversation to update.
* @param {Object} params - Parameters used when updating the conversation.

@@ -131,5 +151,32 @@ * @param {function} callback - function to be called when the request completes.

/**
* Record an existing conversation.
*
* @param {string} conversationId - The unique identifier for the conversation to record.
* @param {Object} params - Parameters used when recording the conversation.
* @param {function} callback - function to be called when the request completes.
*/
}, {
key: "record",
value: function record(conversationId, params, callback) {
params = JSON.stringify(params);
var config = {
host: "api.nexmo.com",
path: Conversations.PATH + "/" + conversationId + "/record",
method: "PUT",
body: params,
headers: {
"Content-Type": "application/json",
Authorization: "Bearer " + this.creds.generateJwt()
}
};
this.options.httpClient.request(config, callback);
}
/**
* Deleta an existing conversation.
*
* @param {string} [conversationId] - The unique identifier for the conversation to delete.
* @param {string} conversationId - The unique identifier for the conversation to delete.
* @param {function} callback - function to be called when the request completes.

@@ -160,2 +207,2 @@ */

module.exports = exports["default"];
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9Db252ZXJzYXRpb25zLmpzIl0sIm5hbWVzIjpbIkNvbnZlcnNhdGlvbnMiLCJjcmVkZW50aWFscyIsIm9wdGlvbnMiLCJjcmVkcyIsIm1lbWJlcnMiLCJfbmV4bW8iLCJuZXhtb092ZXJyaWRlIiwicGFyYW1zIiwiY2FsbGJhY2siLCJKU09OIiwic3RyaW5naWZ5IiwiY29uZmlnIiwiaG9zdCIsInBhdGgiLCJQQVRIIiwibWV0aG9kIiwi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,6 @@ "use strict";

if (typeof customResponseParser === "function") {
response = customResponseParser(response);
// don't try to parse the response on errors
if (response) {
response = customResponseParser(response);
}
}

@@ -350,3 +353,3 @@ callback(error, response);

key: "post",
value: function post(path, params, callback, useJwt, headers) {
value: function post(path, params, callback, useJwt) {
var qs = {};

@@ -365,18 +368,5 @@ if (!useJwt) {

headers = headers || {};
if (useJwt) {
headers["Authorization"] = "Bearer " + this.credentials.generateJwt();
}
var encodedParams = void 0;
if (headers["Content-Type"] == "application/json") {
encodedParams = JSON.stringify(params);
} else {
encodedParams = querystring.stringify(params);
}
this.request({
path: path,
body: encodedParams,
headers: headers
body: querystring.stringify(params)
}, "POST", callback);

@@ -435,2 +425,2 @@ }

module.exports = exports["default"];
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9IdHRwQ2xpZW50LmpzIl0sIm5hbWVzIjpbImh0dHBzIiwicmVxdWlyZSIsImh0dHAiLCJyZXF1ZXN0IiwicXVlcnlzdHJpbmciLCJIdHRwQ2xpZW50Iiwib3B0aW9ucyIsImNyZWRlbnRpYWxzIiwiaG9zdCIsInBvcnQiLCJoZWFkZXJzIiwiQWNjZXB0IiwibG9nZ2VyIiwidGltZW91dCIsInJlcXVlc3RMaWIiLCJ1c2VyQWdlbnQiLCJlbmRwb2ludCIsIm1ldGhvZCIsImNhbGxiYWNrIiwic2tpcEpzb25QYXJzaW5nIiwiY3VzdG9tUmVzcG9uc2VQYXJzZXIiLCJwYXRoIiwiT2JqZWN0IiwiYXNzaWduIiwidW5kZWZpbmVkIiwia2V5cyIsImZvckVhY2giLCJrZXkiLCJzaWduYXR1cmVTZWNyZXQiLCJzaWduYXR1cmVNZXRob2QiLCJzcGxpdFBhdGgiLCJzcGxpdCIsInBhcmFtcyIsImRlY29kZSIsInRpbWVzdGFtcCIsIkRhdGUiLCJnZXRUaW1lIiwidG9TdHJpbmciLCJhcGlfc2VjcmV0IiwiaGF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JvciA9IHtcbiAgICAgICAgICBib2R5OiBKU09OLnBhcnNlKGRhdGEuam9pbihcIlwiKSksXG4gICAgICAgICAgaGVhZGVyc1xuICAgICAgICB9O1xuICAgICAgfSBlbHNlIGlmIChtZXRob2QgIT09IFwiREVMRVRFXCIpIHtcbiAgICAgICAgaWYgKCEhc2tpcEpzb25QYXJzaW5nKSB7XG4gICAgICAgICAgcmVzcG9uc2UgPSBkYXRhLmpvaW4oXCJcIik7XG4gICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgcmVzcG9uc2UgPSBKU09OLnBhcnNlKGRhdGEuam9pbihcIlwiKSk7XG4gICAgICAgIH1cbiAgICAgIH0gZWxzZSB7XG4gICAgICAgIHJlc3BvbnNlID0gZGF0YTtcbiAgICAgIH1cbiAgICB9IGNhdGNoIChwYXJzZUVycm9yKSB7XG4gICAgICB0aGlzLmxvZ2dlci5lcnJvcihwYXJzZUVycm9yKTtcbiAgICAgIHRoaXMubG9nZ2VyLmVycm9yKFxuICAgICAgICBcImNvdWxkIG5vdCBjb252ZXJ0IEFQSSByZXNwb25zZSB0byBKU09OLCBhYm92ZSBlcnJvciBpcyBpZ25vcmVkIGFuZCByYXcgQVBJIHJlc3BvbnNlIGlzIHJldHVybmVkIHRvIGNsaWVudFwiXG4gICAgICApO1xuICAgICAgdGhpcy5sb2dnZXIuZXJyb3IoXCJSYXcgRXJyb3IgbWVzc2FnZSBmcm9tIEFQSSBcIik7XG4gICAgICB0aGlzLmxvZ2dlci5lcnJvcihgXCIke2RhdGF9XCJgKTtcblxuICAgICAgZXJyb3IgPSB7XG4gICAgICAgIHN0YXR1czogc3RhdHVzLFxuICAgICAgICBtZXNzYWdlOiBcIlRoZSBBUEkgcmVzcG9uc2UgY291bGQgbm90IGJlIHBhcnNlZC5cIixcbiAgICAgICAgYm9keTogZGF0YS5qb2luKFwiXCIpLFxuICAgICAgICBwYXJzZUVycm9yOiBwYXJzZUVycm9yXG4gICAgICB9O1xuICAgIH1cblxuICAgIG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Ftc1tcImFwaV9zZWNyZXRcIl0gPSB0aGlzLmNyZWRlbnRpYWxzLmFwaVNlY3JldDtcbiAgICB9XG5cbiAgICBwYXRoID0gcGF0aCArIFwiP1wiICsgcXVlcnlzdHJpbmcuc3RyaW5naWZ5KHBhcmFtcyk7XG5cbiAgICB0aGlzLnJlcXVlc3QoXG4gICAgICB7XG4gICAgICAgIHBhdGg6IHBhdGhcbiAgICAgIH0sXG4gICAgICBcIlBPU1RcIixcbiAgICAgIGNhbGxiYWNrXG4gICAgKTtcbiAgfVxufVxuXG5leHBvcnQgZGVmYXVsdCBIdHRwQ2xpZW50O1xuIl19

@@ -13,2 +13,6 @@ "use strict";

var _Utils = require("./Utils");
var _Utils2 = _interopRequireDefault(_Utils);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

@@ -46,10 +50,8 @@

this.options = options;
this._nexmo = this.options.nexmoOverride || _index2.default;
}
/**
* Adds a member to a conversation.
* Creates a member in a conversation.
*
* @param {string} [conversationId] - The unique identifier for the conversation
* @param {string} conversationId - The unique identifier for the conversation
* @param {Object} params - Parameters used when adding a member to the conversation. See https://ea.developer.nexmo.com/api/conversation#add-a-user-to-a-conversation for more information.

@@ -61,4 +63,4 @@ * @param {function} callback - function to be called when the request completes.

_createClass(Members, [{
key: "add",
value: function add(conversationId, params, callback) {
key: "create",
value: function create(conversationId, params, callback) {
params = JSON.stringify(params);

@@ -79,6 +81,14 @@

// backwards compatibility to 2.4.0-beta1. Remove for 3.0.0
}, {
key: "add",
value: function add(conversationId, params, callback) {
this.create(conversationId, params, callback);
}
/**
* Get an existing member.
*
* @param {string} [conversationId] - The unique identifier for the conversation
* @param {string} conversationId - The unique identifier for the conversation
* @param {string|object} query - The unique identifier for the member to retrieve

@@ -93,4 +103,66 @@ * or a set of filter parameters for the query. For more information

value: function get(conversationId, query, callback) {
this._nexmo.getWithQuery(Members.PATH.replace("{conversation_uuid}", conversationId), query, this.creds, this.options, callback);
var config = {
host: "api.nexmo.com",
path: _Utils2.default.createPathWithQuery(Members.PATH.replace("{conversation_uuid}", conversationId), query),
method: "GET",
body: undefined,
headers: {
"Content-Type": "application/json",
Authorization: "Bearer " + this.creds.generateJwt()
}
};
this.options.httpClient.request(config, callback);
}
/**
* Update an existing member.
*
* @param {string} conversationId - The unique identifier for the conversation to update the member in.
* @param {string} memberId - The unique identifier for the member to update.
* @param {Object} params - Parameters used when updating the member.
* @param {function} callback - function to be called when the request completes.
*/
}, {
key: "update",
value: function update(conversationId, memberId, params, callback) {
params = JSON.stringify(params);
var config = {
host: "api.nexmo.com",
path: Members.PATH.replace("{conversation_uuid}", conversationId) + "/" + memberId,
method: "PUT",
body: params,
headers: {
"Content-Type": "application/json",
Authorization: "Bearer " + this.creds.generateJwt()
}
};
this.options.httpClient.request(config, callback);
}
/**
* Deleta an existing member.
*
* @param {string} conversationId- The unique identifier for the conversation to delete the member from.
* @param {string} memberId - The unique identifier for the member to delete.
* @param {function} callback - function to be called when the request completes.
*/
}, {
key: "delete",
value: function _delete(conversationId, memberId, callback) {
var config = {
host: "api.nexmo.com",
path: Members.PATH.replace("{conversation_uuid}", conversationId) + "/" + memberId,
method: "DELETE",
headers: {
"Content-Type": "application/json",
Authorization: "Bearer " + this.creds.generateJwt()
}
};
this.options.httpClient.request(config, callback);
}
}]);

@@ -103,2 +175,2 @@

module.exports = exports["default"];
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9NZW1iZXJzLmpzIl0sIm5hbWVzIjpbIk1lbWJlcnMiLCJjcmVkcyIsIm9wdGlvbnMiLCJfbmV4bW8iLCJuZXhtb092ZXJyaWRlIiwiY29udmVyc2F0aW9uSWQiLCJwYXJhbXMiLCJjYWxsYmFjayIsIkpTT04iLCJzdHJpbmdpZnkiLCJjb25maWciLCJob3N0IiwicGF0aCIsIlBBVEgiLCJyZXBsYWNlIiwibWV0aG9kIiwiYm9keSIsImhlYWRlcnMiL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zLm9wdGlvbnMuaHR0cENsaWVudC5yZXF1ZXN0KGNvbmZpZywgY2FsbGJhY2spO1xuICB9XG59XG5cbmV4cG9ydCBkZWZhdWx0IE1lbWJlcnM7XG4iXX0=

@@ -61,10 +61,2 @@ "use strict";

var _Conversations = require("./Conversations");
var _Conversations2 = _interopRequireDefault(_Conversations);
var _Users = require("./Users");
var _Users2 = _interopRequireDefault(_Users);
var _FilesResource = require("./FilesResource");

@@ -86,10 +78,6 @@

var _Channel = require("./Channel");
var _Pricing = require("./Pricing");
var _Channel2 = _interopRequireDefault(_Channel);
var _Pricing2 = _interopRequireDefault(_Pricing);
var _Dispatch = require("./Dispatch");
var _Dispatch2 = _interopRequireDefault(_Dispatch);
var _HttpClient = require("./HttpClient");

@@ -169,4 +157,2 @@

this.calls = new _CallsResource2.default(this.credentials, this.options);
this.conversations = new _Conversations2.default(this.credentials, this.options);
this.users = new _Users2.default(this.credentials, this.options);
this.files = new _FilesResource2.default(this.credentials, this.options);

@@ -176,4 +162,3 @@ this.conversion = new _Conversion2.default(this.credentials, this.options);

this.redact = new _Redact2.default(this.credentials, this.options);
this.channel = new _Channel2.default(this.credentials, this.options);
this.dispatch = new _Dispatch2.default(this.credentials, this.options);
this.pricing = new _Pricing2.default(this.credentials, this.options);

@@ -265,2 +250,2 @@ /**

module.exports = exports["default"];
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9OZXhtby5qcyJdLCJuYW1lcyI6WyJqd3RHZW5lcmF0b3JJbnN0YW5jZSIsImhhc2hHZW5lcmF0b3JJbnN0YW5jZSIsIk5leG1vIiwiY3JlZGVudGlhbHMiLCJvcHRpb25zIiwiZGVidWciLCJwYXJzZSIsImxvZ2dlciIsInVzZXJBZ2VudCIsInBhY2thZ2VEZXRhaWxzIiwicmVxdWlyZSIsImpvaW4iLCJfX2Rpcm5hbWUiLCJ2ZXJzaW9uIiwicHJvY2VzcyIsInJlcG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lY3JldCB0byBiZSB1c2VkIHdoZW4gY3JlYXRpbmcgdGhlIGhhc2hcbiAqIEBwYXJhbSB7T2JqZWN0fSBwYXJhbXMgLSBwYXJhbXMgdG8gZ2VuZXJhdGUgaGFzaCBmcm9tXG4gKlxuICogQHJldHVybnMge1N0cmluZ30gdGhlIGdlbmVyYXRlZCB0b2tlblxuICovXG5OZXhtby5nZW5lcmF0ZVNpZ25hdHVyZSA9IChtZXRob2QsIHNlY3JldCwgcGFyYW1zKSA9PiB7XG4gIHJldHVybiBoYXNoR2VuZXJhdG9ySW5zdGFuY2UuZ2VuZXJhdGUobWV0aG9kLCBzZWNyZXQsIHBhcmFtcyk7XG59O1xuXG5leHBvcnQgZGVmYXVsdCBOZXhtbztcbiJdfQ==

@@ -13,2 +13,6 @@ "use strict";

var _Pricing = require("./Pricing");
var _Pricing2 = _interopRequireDefault(_Pricing);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

@@ -33,2 +37,4 @@

this._pricing = new _Pricing2.default(credentials, options);
// Used to facilitate testing of the call to the underlying object

@@ -41,3 +47,3 @@ this._nexmo = this.options.nexmoOverride || _index2.default;

/**
* TODO: document
* TODO: remove with next major release
*/

@@ -49,7 +55,7 @@

value: function getPricing() {
this._nexmo.getPricing.apply(this._nexmo, arguments);
this._pricing.get.apply(this, arguments);
}
/**
* TODO: document
* TODO: remove with next major release
*/

@@ -60,3 +66,3 @@

value: function getPhonePricing() {
this._nexmo.getPhonePricing.apply(this._nexmo, arguments);
this._pricing.getPhone.apply(this, arguments);
}

@@ -120,2 +126,2 @@

module.exports = exports["default"];
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9OdW1iZXIuanMiXSwibmFtZXMiOlsiTnVtYmVyIiwiY3JlZGVudGlhbHMiLCJvcHRpb25zIiwiY3JlZHMiLCJfbmV4bW8iLCJuZXhtb092ZXJyaWRlIiwiaW5pdGlhbG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pcy5fcHJpY2luZy5nZXQuYXBwbHkodGhpcywgYXJndW1lbnRzKTtcbiAgfVxuXG4gIC8qKlxuICAgKiBUT0RPOiByZW1vdmUgd2l0aCBuZXh0IG1ham9yIHJlbGVhc2VcbiAgICovXG4gIGdldFBob25lUHJpY2luZygpIHtcbiAgICB0aGlzLl9wcmljaW5nLmdldFBob25lLmFwcGx5KHRoaXMsIGFyZ3VtZW50cyk7XG4gIH1cblxuICAvKipcbiAgICogVE9ETzogZG9jdW1lbnRcbiAgICovXG4gIGdldCgpIHtcbiAgICB0aGlzLl9uZXhtby5nZXROdW1iZXJzLmFwcGx5KHRoaXMuX25leG1vLCBhcmd1bWVudHMpO1xuICB9XG5cbiAgLyoqXG4gICAqIFRPRE86IGRvY3VtZW50XG4gICAqL1xuICBzZWFyY2goKSB7XG4gICAgdGhpcy5fbmV4bW8uc2VhcmNoTnVtYmVycy5hcHBseSh0aGlzLl9uZXhtbywgYXJndW1lbnRzKTtcbiAgfVxuXG4gIC8qKlxuICAgKiBUT0RPOiBkb2N1bWVudFxuICAgKi9cbiAgYnV5KCkge1xuICAgIHRoaXMuX25leG1vLmJ1eU51bWJlci5hcHBseSh0aGlzLl9uZXhtbywgYXJndW1lbnRzKTtcbiAgfVxuXG4gIC8qKlxuICAgKiBUT0RPOiBkb2N1bWVudFxuICAgKi9cbiAgY2FuY2VsKCkge1xuICAgIHRoaXMuX25leG1vLmNhbmNlbE51bWJlci5hcHBseSh0aGlzLl9uZXhtbywgYXJndW1lbnRzKTtcbiAgfVxuXG4gIC8qKlxuICAgKiBUT0RPOiBkb2N1bWVudFxuICAgKi9cbiAgdXBkYXRlKCkge1xuICAgIHRoaXMuX25leG1vLnVwZGF0ZU51bWJlci5hcHBseSh0aGlzLl9uZXhtbywgYXJndW1lbnRzKTtcbiAgfVxufVxuXG5leHBvcnQgZGVmYXVsdCBOdW1iZXI7XG4iXX0=

@@ -13,2 +13,6 @@ "use strict";

var _Utils = require("./Utils");
var _Utils2 = _interopRequireDefault(_Utils);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

@@ -44,5 +48,2 @@

this.options = options;
// Used to facilitate testing of the call to the underlying object
this._nexmo = this.options.nexmoOverride || _index2.default;
}

@@ -88,3 +89,13 @@

value: function get(query, callback) {
this._nexmo.getWithQuery(Users.PATH, query, this.creds, this.options, callback);
var config = {
host: "api.nexmo.com",
path: _Utils2.default.createPathWithQuery(Users.PATH, query),
method: "GET",
body: undefined,
headers: {
"Content-Type": "application/json",
Authorization: "Bearer " + this.creds.generateJwt()
}
};
this.options.httpClient.request(config, callback);
}

@@ -95,3 +106,3 @@

*
* @param {string} [userId] - The unique identifier for the user to retrieve conversations for
* @param {string} userId - The unique identifier for the user to retrieve conversations for
* @param {function} callback - function to be called when the request completes.

@@ -103,3 +114,13 @@ */

value: function getConversations(userId, callback) {
this._nexmo.getWithQuery(Users.PATH + "/" + userId + "/conversations", {}, this.creds, this.options, callback);
var config = {
host: "api.nexmo.com",
path: Users.PATH + "/" + userId + "/conversations",
method: "GET",
body: undefined,
headers: {
"Content-Type": "application/json",
Authorization: "Bearer " + this.creds.generateJwt()
}
};
this.options.httpClient.request(config, callback);
}

@@ -110,3 +131,3 @@

*
* @param {string} [userId] - The unique identifier for the user to update.
* @param {string} userId - The unique identifier for the user to update.
* @param {Object} params - Parameters used when updating the conversation.

@@ -138,3 +159,3 @@ * @param {function} callback - function to be called when the request completes.

*
* @param {string} [userId] - The unique identifier for the user to delete.
* @param {string} userId - The unique identifier for the user to delete.
* @param {function} callback - function to be called when the request completes.

@@ -165,2 +186,2 @@ */

module.exports = exports["default"];
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9Vc2Vycy5qcyJdLCJuYW1lcyI6WyJVc2VycyIsImNyZWRlbnRpYWxzIiwib3B0aW9ucyIsImNyZWRzIiwiX25leG1vIiwibmV4bW9PdmVycmlkZSIsInBhcmFtcyI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FxuICAgICAgaGVhZGVyczoge1xuICAgICAgICBcIkNvbnRlbnQtVHlwZVwiOiBcImFwcGxpY2F0aW9uL2pzb25cIixcbiAgICAgICAgQXV0aG9yaXphdGlvbjogYEJlYXJlciAke3RoaXMuY3JlZHMuZ2VuZXJhdGVKd3QoKX1gXG4gICAgICB9XG4gICAgfTtcblxuICAgIHRoaXMub3B0aW9ucy5odHRwQ2xpZW50LnJlcXVlc3QoY29uZmlnLCBjYWxsYmFjayk7XG4gIH1cbn1cblxuZXhwb3J0IGRlZmF1bHQgVXNlcnM7XG4iXX0=
{
"name": "nexmo",
"author": "nexmo",
"version": "2.5.2-beta-1",
"version": "2.5.2",
"main": "lib/Nexmo",
"types": "./typings/index.d.ts",
"keywords": [

@@ -28,4 +29,3 @@ "sms",

"ecwyne",
"https://github.com/backhand",
"alexlakatos"
"https://github.com/backhand"
],

@@ -43,7 +43,6 @@ "scripts": {

"prepublish": "npm run compile",
"pretest": "npm run lint",
"test-e2e": "npm run compile && mocha --compilers ./node_modules/.bin/_mocha --compilers js:babel-register ./e2e/*.spec.js"
"pretest": "npm run lint"
},
"devDependencies": {
"babel-cli": "^6.7.7",
"babel-cli": "^6.26.0",
"babel-plugin-add-module-exports": "^0.2.1",

@@ -50,0 +49,0 @@ "babel-plugin-istanbul": "^4.1.6",

@@ -12,3 +12,3 @@ # Nexmo Client Library for Node.js

[Installation](#installation) | [Constructor](#constructor) | [Messaging](#messaging) | [Message Signing](#signature) | [Voice](#voice) | [Verify](#verify) | [Number Insight](#number-insight) | [Applications](#applications) | [Conversations](#conversations) | [Users](#users) | [Management](#management) | [Redact](#redact) | [JWT (JSON Web Token)](#jwt)
[Installation](#installation) | [Constructor](#constructor) | [Messaging](#messaging) | [Message Signing](#signature) | [Voice](#voice) | [Verify](#verify) | [Number Insight](#number-insight) | [Applications](#applications) | [Management](#management) | [Redact](#redact) | [Pricing](#pricing) | [JWT (JSON Web Token)](#jwt)

@@ -23,5 +23,2 @@ ## Installation

* `apiKey` and `apiSecret` are required for SMS, Verify, Number Insights, Account management APIs
* `applicationId` and `privateKey` are required for Voice / Stitch applications
```js

@@ -391,3 +388,3 @@ const Nexmo = require('nexmo');

```js
nexmo.applications.update(params, callback);
nexmo.applications.update(appId, params, callback);
```

@@ -405,120 +402,2 @@

## Conversations
For an overview of conversations see https://developer.nexmo.com/stitch/overview
### Create a Conversation
```js
nexmo.conversations.create(params, callback);
```
params is a dictionary of parameters per [documentation](https://developer.nexmo.com/api/stitch#createConversation)
### Get a single Conversation
```js
nexmo.conversations.get(conversationId, callback);
```
For more information see https://developer.nexmo.com/api/stitch#retrieveConversation
### Get Conversations by filter
```js
nexmo.conversations.get(options, callback);
```
For more information see https://developer.nexmo.com/api/stitch
### Update a Conversation
```js
nexmo.conversations.update(conversationId, params, callback);
```
params is a dictionary of parameters per [documentation](https://developer.nexmo.com/api/stitch#replaceConversation)
### Delete a Conversation
```js
nexmo.conversations.delete(conversationId, callback);
```
For more information see https://developer.nexmo.com/api/stitch#deleteConversation
### Add a Member to a Conversation
```js
nexmo.conversations.members.add(conversationId, params, callback);
```
params is a dictionary of parameters per [documentation](https://developer.nexmo.com/api/stitch)
### Get a single Member
```js
nexmo.conversations.members.get(conversationId, memberId, callback);
```
For more information see https://developer.nexmo.com/api/stitch#getUser
### Get Members by filter
```js
nexmo.conversations.members.get(conversationId, params, callback);
```
For more information see https://developer.nexmo.com/api/stitch
## Users
### Create a User
```js
nexmo.users.create(params, callback);
```
params is a dictionary of parameters per [documentation](https://developer.nexmo.com/api/stitch#createUse)
### Get a single User
```js
nexmo.users.get(userId, callback);
```
For more information see https://developer.nexmo.com/api/stitch#getUser
### Get Users by filter
```js
nexmo.users.get(options, callback);
```
For more information see https://developer.nexmo.com/api/stitch#getUsers
### Get all Conversations for a Users
```js
nexmo.users.getConversations(userId, callback);
```
For more information see https://developer.nexmo.com/api/stitch#getuserConversations
### Update a User
```js
nexmo.users.update(userId, params, callback);
```
params is a dictionary of parameters per [documentation](https://ea.developer.nexmo.com/api/conversation#create-a-conversation)
### Delete a User
```js
nexmo.users.delete(userId, callback);
```
For more information see https://developer.nexmo.com/api/stitch#deleteUser
## Management

@@ -584,2 +463,4 @@

* `size`
* `has_application`
* `application_id`

@@ -669,2 +550,30 @@ For more details about these options, refer to the [Numbers API reference](https://developer.nexmo.com/api/numbers#getOwnedNumbers)

## Pricing
`type` is the type of service you wish to retrieve pricing for: either `sms`, `sms-transit` or `voice`.
### Get pricing for a specific country
```js
nexmo.pricing.get(type, country_code, callback);
```
### Get pricing for all countries
```js
nexmo.pricing.getFull(type, callback);
```
### Get pricing for a specific dialing prefix
```js
nexmo.pricing.getPrefix(type, country_prefix, callback);
```
### Get pricing for a specific phone number
```js
nexmo.pricing.getPhone(type, phone, callback);
```
## Media

@@ -716,56 +625,2 @@

## Channel
### Send a message
```js
nexmo.channel.send(
{ type: "<TYPE>", number: "<TO>"},
{ type: "<TYPE>", number: "<FROM>"},
{ content: { type: "text", text: "testing" } },
callback
);
```
## Dispatch
### Create a dispatch
```js
nexmo.dispatch.create(
"failover",
[
{
to: { type: "viber_service_msg", id: "<TO>"},
from: { type: "viber_service_msg", id: "<FROM>" },
message: {
content: {
type: "text",
text: "<CONTENT>"
},
viber_service_msg: {
ttl: 30
}
},
failover: {
expiry_time: 600,
condition_status: "delivered"
}
},
{
to: { type: "sms", number: "<TO>" },
from: { type: "sms", number: "<FROM>" },
message: {
content: {
type: "text",
text: "<CONTENT>"
}
}
}
],
callback
);
```
## JWT

@@ -787,2 +642,4 @@

const nexmo = new Nexmo({
apiKey: API_KEY,
apiSecret: API_SECRET,
applicationId: APP_ID,

@@ -959,15 +816,2 @@ privateKey: PRIVATE_KEY_PATH,

* [x] Delete an Application
* Conversations
* [x] Create a Conversation
* [x] Get Conversations
* [x] Update a Conversation
* [x] Delete a Conversation
* [x] Add a Member to a Conversation
* [x] Get Members
* Users
* [x] Create a User
* [x] Get Users
* [x] Get Conversations for a User
* [x] Update a User
* [x] Delete a User
* Account

@@ -990,6 +834,2 @@ * [X] Balance

* [x] Delete
* Channel
* [x] Send
* Workflow
* [x] Create
* Voice (Deprecated)

@@ -996,0 +836,0 @@ * [x] Outbound Calls

Sorry, the diff of this file is too big to display

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