Tweet Annotations
1.0.0
This sample code shows you how you might build a demo web app with Python and Flask and exemplifies some of the features and functionality available with the Twitter API v2 and Tweet Annotations.
In the root directory, rename credentials.yaml.template to credentials.yaml and insert your Twitter App credentials. Note that you must use the credentials belonging to a Twitter Developer App with access to the Twitter API v2.
Don't forget to add credentials.yaml to your .gitignore file to avoid compromising your App credentials.
Follow these steps to run the web app on your local machine:
export FLASK_ENV=development. (On Windows, use set instead of export.)flask run.http://127.0.0.1:5000/).This web app illustrates the following functionality: