Skip to content

Latest commit

 

History

History
28 lines (24 loc) · 583 Bytes

README.md

File metadata and controls

28 lines (24 loc) · 583 Bytes

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);
});