Skip to main content
connections 操作向けのクライアント このクライアントは X API の connections エンドポイントと対話するためのメソッドを提供します。認証、リクエストの整形、connections に関連するすべての操作のレスポンス解析を扱います。

コンストラクター

コンストラクター

new ConnectionsClient(client): ConnectionsClient 新しい connections クライアントインスタンスを作成します

パラメーター

戻り値

ConnectionsClient

定義場所

connections/client.ts:88

メソッド

getConnectionHistory

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

パラメーター

戻り値

Promise<Response> API レスポンスに解決される Promise。requestOptions.raw が true の場合は生の Response を返します

定義場所

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

パラメーター

戻り値

Promise<Get2ConnectionsResponse>

定義場所

connections/client.ts:138

deleteAll

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

パラメーター

戻り値

Promise<Response> API レスポンスに解決される Promise。requestOptions.raw が true の場合は生の Response を返します

定義場所

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

戻り値

Promise<KillAllConnectionsResponse>

定義場所

connections/client.ts:327