Created
February 15, 2014 22:24
-
-
Save mplewis/9026028 to your computer and use it in GitHub Desktop.
Post to the Pebble Speaks server.
This file contains 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
var newSpeech = { something: 'whatever' }; | |
$.ajax({ | |
type: 'POST', | |
url: 'http://pspk.kesdev.com/speeches', | |
data: JSON.stringify(newSpeech), | |
contentType: 'application/json', | |
dataType: 'json', | |
success: function(data){ | |
console.log(data); | |
}, | |
failure: function(errMsg) { | |
alert(errMsg); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment