Created
November 12, 2012 22:03
-
-
Save faabiosr/4062294 to your computer and use it in GitHub Desktop.
RestClient - Titanium Example
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 RestClient = require('/libs/RestClient'); | |
rest = new RestClient('YOUR API KEY'); | |
rest.get('/users/10',function(result){ | |
result.error ? alert('Error!') : alert(result.id); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment