Skip to content

Recodify/sms-global-node-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SMSGlobal REST Client

node.js client for SMSGlobal REST Api

A node.js client for the SMSGlobal restAPI.

GET EXAMPLE

var wrapper = new sms.wrapper('null', 'null');
wrapper.get('contact', null,  function(body){
	console.log(body);
});

POST EXAMPLE

var wrapper = new sms.wrapper('YOUR KEY', 'YOUR PASSWORD');
var message = {
	origin: "test",
	destination: "447000000000",
	message: "another message"
}

wrapper.post('sms', null, message, function(statusCode, body){
	console.log("http status: " + statusCode);
	if (body)
		console.log("body: " + body);
});

About

node.js client for SMSGlobal REST Api

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published