Created
June 10, 2015 06:34
-
-
Save jeromyevans/f30a6cb47e08bb2f778f to your computer and use it in GitHub Desktop.
Use oauth to GET a Xero endpoint
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
oauth.get('https://api.xero.com/api.xro/2.0/Organisation', | |
oauth_access_token, | |
oauth_access_token_secret, | |
function (e, data, res) { | |
if (e) { | |
console.error(e); | |
return; | |
} | |
var oResponse = JSON.parse(data); | |
console.log(require('util').inspect(oResponse, false, null)); | |
return; | |
}); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment