SmsBump with JavaScript

API and Code
Platforms
Languages

Overview

This is small library that we have created for all of you wishing to use SmsBump in their JavaScript application. However, have in mind that we have packed it as a jQuery plugin. Feel free to download and have some fun with the library.

 Download now

How to use it

Go ahead and download the library (if you have not done it already) and add it to your project.

Since this library is shipped as a jQuery extension, you will be accessing it throug your jQuery object (usually the $ variable) like this $.smsbump();

Request example

$.smsbump({
    apikey: "{api_key}",
    to: ["{recipient}", "{recipient}"],
    message: "Hello from SmsBump",
    success: function(data) {
        console.log(data);
    },
    error: function(data) {
        console.log(data);
    }
});
            

Yes, it is that simple. You can have as many recipients as you want. However, have in mind that the current version of the library shoots the requests as fast as possible, without applying any throttling. This can cause problems for cases where you need to send a message to a thousand recipients for example. In such cases you will need to modify the library and apply some sort of limit where only 10 concurrent requests may be active at a time.