Posting a tweet to Twitter
In this recipe, you'll learn how to post a tweet on behalf of a user from a Spring web application.
Getting ready
This recipe uses the code from the Connecting to Twitter recipe.
How to do it…
In the TwitterController
class, in the tw()
method, use the Twitter object to post a tweet.
twitter.timelineOperations().updateStatus("Just a test");