https://github.com/philss/off_broadway_twitter
An example app on how to write a Broadway producer for the Twitter stream API v2.
https://github.com/philss/off_broadway_twitter
broadway elixir streams twitter-api
Last synced: about 1 year ago
JSON representation
An example app on how to write a Broadway producer for the Twitter stream API v2.
- Host: GitHub
- URL: https://github.com/philss/off_broadway_twitter
- Owner: philss
- Created: 2020-12-21T17:14:55.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-08-31T21:07:23.000Z (almost 5 years ago)
- Last Synced: 2025-03-25T14:44:47.671Z (about 1 year ago)
- Topics: broadway, elixir, streams, twitter-api
- Language: Elixir
- Homepage: https://dashbit.co/blog/building-a-custom-broadway-producer-for-the-twitter-stream-api
- Size: 16.6 KB
- Stars: 20
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Off Broadway Twitter
A naive implementation of a Broadway producer for the Twitter stream V2.
This does not have ACK. It just prints the tweets.
This is an example app for the text I wrote for Dashbit's
blog: [Building a custom Broadway producer for the Twitter stream API](https://dashbit.co/blog/building-a-custom-broadway-producer-for-the-twitter-stream-api).
## Running
In order to run this app, first you need to create an account on
[Twitter's Developer area](https://developer.twitter.com/).
After that, create an app that has access to the Stream API V2.
You will need to get a "Bearer Token".
With the token in hand, you can run the app with:
$ TWITTER_BEARER_TOKEN=your-token-here iex -S mix
Check more about Broadway in our [Broadway website](https://elixir-broadway.org).