ActivityClient
TheActivityClient provides methods for streaming X Activities and managing activity subscriptions.
stream
Stream of X Activities in real-time.The number of minutes of backfill requested.
YYYY-MM-DDTHH:mm:ssZ. The earliest UTC timestamp from which the Post labels will be provided.
YYYY-MM-DDTHH:mm:ssZ. The latest UTC timestamp from which the Post labels will be provided.
Optional StreamConfig for customizing retry behavior, timeouts, and callbacks.
Generator that yields individual streaming data items. Automatically manages connection with exponential backoff retry logic.
create_subscription
Creates a subscription for an X activity event.Request body containing subscription details.
Response containing the created subscription details.
get_subscriptions
Get a list of active subscriptions for X Activity.The maximum number of results to return per page.
This parameter is used to get the next ‘page’ of results.
Iterator that yields pages of subscriptions. Automatically handles pagination.
delete_subscription
Deletes a subscription for an X activity event.The ID of the subscription to delete.
Response confirming the subscription was deleted.