Skip to main content
Access Connections endpoints via client.connections (ConnectionsClient).

Methods

delete_all

DELETE /2/connections/all Terminate All Connections Terminates all active streaming connections for the authenticated application.
Returns: DeleteAllResponse

delete_by_endpoint

DELETE /2/connections/{endpoint_id} Terminate Connections by Endpoint Terminates all streaming connections for a specific endpoint ID for the authenticated application.

Parameters

Literal["filtered_stream", "sample_stream", "sample10_stream", "firehose_stream", "tweets_compliance_stream", "users_compliance_stream", "tweet_label_stream", "firehose_stream_lang_en", "firehose_stream_lang_ja", "firehose_stream_lang_ko", "firehose_stream_lang_pt", "likes_firehose_stream", "likes_sample10_stream", "likes_compliance_stream"]
required
endpoint_id (path parameter).
Returns: DeleteByEndpointResponse

delete_by_uuids

DELETE /2/connections Terminate Multiple Connections Terminates multiple streaming connections by their UUIDs for the authenticated application.

Parameters

DeleteByUuidsRequest
required
Request payload.
Returns: DeleteByUuidsResponse

get_connection_history

GET /2/connections Paginated Get Connection History Returns active and historical streaming connections with disconnect reasons for the authenticated application.

Parameters

Returns: Iterator[GetConnectionHistoryResponse]