Created
October 29, 2011 22:27
-
-
Save atypical/1325177 to your computer and use it in GitHub Desktop.
getUserInfo()
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
function getUserInfo(){ | |
var tumblr = new OAuth.Tumblr({ | |
consumerKey: 'adfasdfasdfasdfasdfas', | |
consumerSecret: 'adfasdfasdfasdfasdfsa' | |
}); | |
function success(data) | |
{ | |
Ti.API.info('User Info response text: '+data.text); | |
} | |
function failure(data) | |
{ | |
Ti.API.info('Something bad happened: '+ data.text); | |
}; | |
tumblr.userInfo(success, failure) | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment