Skip to content

Instantly share code, notes, and snippets.

@akhilcacharya
Created June 19, 2014 17:46
Embed
What would you like to do?
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