Clockwork SMS API
Documentation
Everything you need to know

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.

Code Wrappers

  • C# wrapper
  • Java wrapper
  • Node.js Wrapper
  • PHP Wrapper
  • Python Wrapper
  • Ruby gem
  • VB.NET wrapper

Email Interface

  • Send SMS via email

HTTP Interface

  • Check your credit via HTTP
  • SMS Delivery Receipts via HTTP
  • Receive SMS via HTTP
  • Send SMS via HTTP

XML Interface

  • Check your credit using XML
  • SMS Delivery Receipts in XML
  • Receive SMS in XML
  • Send SMS using XML

Reference

  • API Error Codes
  • Delivery States
  • GSM Character set