PrerequisitesBefore you begin, you’ll need:
- A developer account with an approved App
- Your App’s Bearer Token
Create a subscription
Subscribe to a user’s activity events:Response:
- cURL
- Python
Connect to the stream
Open a persistent connection to receive events:
- cURL
- Python
Process incoming events
Events stream as JSON objects:
Available event types
| Event | Description |
|---|---|
tweet_create_events | User posts a new Post |
favorite_events | User likes a Post |
follow_events | User follows or is followed |
direct_message_events | User sends or receives a DM |
block_events | User blocks or unblocks |
mute_events | User mutes or unmutes |
Manage subscriptions
List subscriptions
List subscriptions
Get all active subscriptions:
Update a subscription
Update a subscription
Modify event types for a subscription:
Delete a subscription
Delete a subscription
Remove a subscription: