Skip to content

Instantly share code, notes, and snippets.

@troscoe
Created May 7, 2013 21:30
Show Gist options
  • Save troscoe/5536309 to your computer and use it in GitHub Desktop.
Save troscoe/5536309 to your computer and use it in GitHub Desktop.
Track App Opens with @parseit using Javascript and #appceleartor #titanium
var xhr = Ti.Network.createHTTPClient();
xhr.open("POST", "https://api.parse.com/1/events/AppOpened", true);
xhr.setRequestHeader("X-Parse-Application-Id", "your application id");
xhr.setRequestHeader("X-Parse-REST-API-Key", "your REST API key");
xhr.setRequestHeader("Content-Type", "application/json");
var d = JSON.stringify({});
xhr.send(d);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment