Twitter API: Sending a Tweet
This example shows how to use the Twitter API to send a tweet. This example is the implementation of the "tweet" function of The Flatterist.
This script looks up a compliment from the list of The Flatterist's compliments and tweets it to the designated user as both text and a link to The Flatterist.
This script already contains Twitter OAuth credentials for the user (@flatterist). To learn about how to obtain OAuth credentials for a Twitter user, see the Twitter authentication example. If you just need to obtain OAuth credentials for your own user (as in this example), you can do this directly on dev.twitter.com.
Try it out on The Flatterist.