Skip to content

Instantly share code, notes, and snippets.

@w3cj
Last active November 12, 2015 20:15
Show Gist options
  • Save w3cj/18ac0145a264ccf013d2 to your computer and use it in GitHub Desktop.
Save w3cj/18ac0145a264ccf013d2 to your computer and use it in GitHub Desktop.
// 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