Comparing version 0.1.6 to 0.1.7
@@ -7,3 +7,3 @@ /** | ||
var http = require("http"); | ||
var https = require("https"); | ||
@@ -51,3 +51,3 @@ /** | ||
options = { | ||
host: 'https://api.instasent.com', | ||
host: 'api.instasent.com', | ||
path: path, | ||
@@ -61,3 +61,3 @@ method: method, | ||
'User-Agent': 'node.js/' + process.versions.node | ||
} | ||
}, | ||
}; | ||
@@ -73,3 +73,3 @@ | ||
request = http.request(options); | ||
request = https.request(options); | ||
@@ -185,2 +185,21 @@ request.on('socket', function (socket) { | ||
}, | ||
send_sms_unicode: { | ||
/** | ||
* Get account sms's | ||
* | ||
* @param {Function} callback | ||
* @return {void} | ||
*/ | ||
create: function (from, to, text, callback) { | ||
params = { | ||
'allowUnicode': true, | ||
'from': from, | ||
'to': to, | ||
'text': text | ||
}; | ||
httpRequest('POST', '/sms/' , params, callback); | ||
} | ||
}, | ||
request_verify: { | ||
@@ -187,0 +206,0 @@ /** |
{ | ||
"name": "instasent", | ||
"version": "0.1.6", | ||
"version": "0.1.7", | ||
"description": "A Nodejs wrapper library for Instasent's API", | ||
@@ -5,0 +5,0 @@ "main": "./lib/client.js", |
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
72
14434
11
337
2