Tweet

We have some code which creates new poems, what would you need to do to post each new poem to Twitter?

See some of the commented out lines of code within poembot.py

How would you extend your code to not just post the poem to Twitter but to link to the Tweet.

When you make an API request to Twitter to create the new post, Twitter responds with some information. Within that response you can find the link to the Tweet. You could then save all or some of that data to the database and when you display the poem you could also display some of the data returned from the API.