Created
May 7, 2013 21:30
-
-
Save troscoe/5536309 to your computer and use it in GitHub Desktop.
Track App Opens with @parseit using Javascript and #appceleartor #titanium
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 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