Forked from vintesh/Twilio SMS Send - RAW AJAX or POST REQUEST
Last active
November 27, 2015 18:40
-
-
Save josephmilla/33425b74bef60abca793 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.ajax({ | |
type: "POST", | |
username: "ACCOUNT_SID", | |
password: "AUTH_TOKEN", | |
url: "https://api.twilio.com/2010-04-01/Accounts/[ACCOUNT_SID]/Messages.json", | |
data: { | |
"To" : "+911234567890", | |
"From" : "+11234567890", | |
"Body" : "From jQuery AJAX" | |
}, | |
success: function(data) { | |
console.log(data); | |
}, | |
error: function(data) { | |
console.log(data); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment