Tweet

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

Look back to your talk_mashup_bot.py from the Python Twitter Bots workshop to find the code to tweet.

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.