Skip to main content
Cliente para operaciones de connections This client provides methods for interacting with the connections endpoints of the X API. It handles authentication, request formatting, and response parsing for all connections related operations.

Constructores

constructor

new ConnectionsClient(client): ConnectionsClient Creates a new connections client instance

Parámetros

Devuelve

ConnectionsClient

Definido en

connections/client.ts:88

Métodos

getConnectionHistory

getConnectionHistory(options): Promise<Response> Get Connection History Returns active and historical streaming connections with disconnect reasons for the authenticated application.

Parámetros

Devuelve

Promise<Response> Promise resolving to the API response, or raw Response if requestOptions.raw is true

Definido en

connections/client.ts:129 getConnectionHistory(options?): Promise<Get2ConnectionsResponse>

Parámetros

Devuelve

Promise<Get2ConnectionsResponse>

Definido en

connections/client.ts:138

deleteAll

deleteAll(options): Promise<Response> Terminate all connections Terminates all active streaming connections for the authenticated application.

Parámetros

Devuelve

Promise<Response> Promise resolving to the API response, or raw Response if requestOptions.raw is true

Definido en

connections/client.ts:318 deleteAll(): Promise<KillAllConnectionsResponse>

Devuelve

Promise<KillAllConnectionsResponse>

Definido en

connections/client.ts:327