Last active
November 12, 2015 20:15
-
-
Save w3cj/18ac0145a264ccf013d2 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
// https://github.com/jublonet/codebird-js | |
var cb = new Codebird; | |
// Obtain a bearer token here: https://github.com/jublonet/codebird-js#application-only-auth | |
cb.setBearerToken("your bearer token here"); | |
// If you comment out this line, it will use the default proxy created by the codebird author https://api.jublo.net/codebird/ | |
cb.setProxy('https://codebird-proxy.herokuapp.com/'); | |
//https://github.com/jublonet/codebird-js#requests-with-app-only-auth | |
//https://github.com/jublonet/codebird-js#mapping-api-methods-to-codebird-function-calls | |
cb.__call( | |
"statuses_userTimeline", | |
"screen_name=hillaryclinton", | |
function (reply, rate, err) { | |
console.log(reply); | |
}, | |
true // this parameter required | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment