07th May 2015

free sms via javascript

A free way to send SMS to a phone for free using textbelt.com

http://textbelt.com/

https://github.com/typpo/textbelt

 

— this is how I used it in a demo —-

$.ajax({
type: “POST”,
headers: { ‘Access-Control-Allow-Origin’: ‘*’ },
url: “http://textbelt.com/text”,
data: “&number=” + “4086058889″ + “&message=” + “Occupancy has exceeded the limit”,
success: function(info) {
console.log(‘sms sent’ + JSON.stringify(info));
},
error: function(info) {
// Or log error if POST fails.
console.log(‘Ajax POST failed:’+JSON.stringify(info));
}
});
// test sms facility textbelt.com

Leave a Reply

grupa LGBT