Skip to content

Instantly share code, notes, and snippets.

@abrkn abrkn/gist:8972942 forked from heumn/gist:8955387
Last active Aug 29, 2015

What would you like to do?
Parse.Cloud.job("testImageCompression", function(request, response) {
console.log("Posting HTTP request");
method: 'POST',
url: '',
headers: {
'Content-Type': 'application/json'
body: JSON.stringify({
'auth': {
'api_key': 'MY KEY EDITED OUT',
'api_secret': 'MY SECRET EDITED OUT'
'url': '',
'wait': true
success: function(httpResponse) {
var id = console.log(JSON.parse(httpResponse.text));
console.log('Callback id: ' + id);
error: function(httpResponse) {
console.error('Request failed with response status ' + httpResponse.status);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.