-
-
Save akhilcacharya/5808e92319f17bd62fed to your computer and use it in GitHub Desktop.
Well that was easy.
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 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