Skip to content

Instantly share code, notes, and snippets.

@akhilcacharya
Created June 19, 2014 17:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save akhilcacharya/5808e92319f17bd62fed to your computer and use it in GitHub Desktop.
Save akhilcacharya/5808e92319f17bd62fed to your computer and use it in GitHub Desktop.
Well that was easy.
var request = require('request');
var api = "https://api.parse.com/2/client_function";
var requestData = {
data: {
sound: 'yo.mp3',
to: "USERNAME",
udid: "",
},
function: "yo",
iid: "",
session_token: "",
uuid: ""
};
var opts = {
url: api,
json: true,
body: requestData,
headers: {
'User-Agent': 'Android',
'Authorization': 'FILL_IN_AUTHORIZATION'
},
}
request.post(opts, function(err, response, body){
console.log(response);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment