Sample app displaying cryptocurrency related tweets.
-
Signup for Twitter developer account.
-
Create a Bearer Token for the Android app.
-
Insert the token as a request header in Retrofit.
A. Create Auth.kt file in the path: CryptoTweets > app > src > main > java > app > cryptotweets.
B. Key:
Authorization
C. Value format:
Bearer {INSERT_YOUR_TOKEN}
D. Add Auth.kt to the gitignore file(s).
@GET
Twitter list request: https://api.twitter.com/1.1/lists/statuses.json?list_id=1173707664863350785&count=10&page=1- Tweet url: https://twitter.com/VitalikButerin/status/1247607628668309507