Let’s say you want to create a webpage where you can visualize how often you are Tweeting. For example, you could use the recent Tweets counts endpoint and Dash to create a website that automatically refreshes to show how much you are Tweeting throughout the week. The code sample in this repository corresponds to this tutorial. This sample is currently deployed on Glitch.
- Vist the Glitch project and click where it says "Remix".
- A developer account.
- If you don’t already have access to the Twitter API, you can sign up for a developer account.
- A Project in the developer portal
- An App containing the credentials required to use the Twitter API. You will be using bearer token authentication for this sample.
- Update your
.env
file to include your bearer tokenBEARER_TOKEN=your-bearer-token
- Update the query to include your own handle
{"query": "from:jessicagarson", "granularity": "day"}