Drafts Script Reference

Twitter

Script integration with Twitter. The updateStatus method is a convenience method for posting a tweet, but the entire Twitter API can be used with the request method, which handles OAuth authentication and authorization.

Properties

Convenience Functions

Functions

Class Functions

Examples

// create twitter object
var twitter = Twitter.create();
// post tweet
var success = twitter.updateStatus("My tweet content!");

if success {
  console.log(twitter.lastResponse);
}
else {
  console.log(twitter.lastError);
  context.fail();
}