Node.js Wrapper
Send SMS in Node.js using our node.js package.
Install through npm using:
npm install clockwork
Here’s an example:
1
2
3
4
5
6
7
8
9
10
var clockwork = require('clockwork')({key:'API_KEY_GOES_HERE'});
clockwork.sendSms({ To: '447000000000', Content: 'Hello World'},
function(error, resp) {
if (error) {
console.log('Something went wrong', error);
} else {
console.log('Message sent',resp.responses[0].id);
}
});
Full documentation can be found in the readme file. If you have any questions get in touch.