Documentation Index
Fetch the complete documentation index at: https://generaltranslation.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
スペース操作用の Client
この Client は、X API の Spaces エンドポイントを操作するためのメソッドを提供します。認証、リクエストのフォーマット、レスポンスのパースを処理し、Spaces に関連するあらゆる操作をサポートします。
• new SpacesClient(client): SpacesClient
新しい SpacesClient のインスタンスを作成します
| Name | Type | Description |
|---|
client | Client | メインの X API の Client インスタンス |
SpacesClient
定義元
spaces/client.ts:316
▸ getByIds(ids, options): Promise<Response>
ID を指定して Spaces を取得する
複数の Spaces の詳細を ID で取得します。
| Name | Type | Description |
|---|
ids | any[] | 返却する Space の id のリスト。 |
options | GetByIdsOptions & { requestOptions: { raw: true } } | - |
Promise<Response>
API レスポンスで解決される Promise。requestOptions.raw が true の場合は生の Response。
spaces/client.ts:361
▸ getByIds(ids, options?): Promise<Get2SpacesResponse>
パラメータ
| 名前 | 型 |
|---|
ids | any[] |
options? | GetByIdsOptions |
Promise<Get2SpacesResponse>
定義元
spaces/client.ts:374
▸ getPosts(id, options): Promise<Response>
スペース内の投稿を取得
特定のスペースで共有された投稿の一覧を、そのスペースのIDを指定して取得します。
| Name | Type | Description |
|---|
id | string | 取得対象の Space の ID。 |
options | GetPostsOptions & { requestOptions: { raw: true } } | - |
Promise<Response>
API レスポンスで解決される Promise。requestOptions.raw が true の場合は生の Response を返します
spaces/client.ts:572
▸ getPosts(id, options?): Promise<Get2SpacesIdTweetsResponse>
| 名前 | 型 |
|---|
id | string |
options? | GetPostsOptions |
Promise<Get2SpacesIdTweetsResponse>
定義元
spaces/client.ts:585
▸ search(query, options): Promise<Response>
スペースを検索します
指定した検索クエリに一致するスペースの一覧を取得します。
| Name | type | 説明 |
|---|
query | string | 検索クエリ。 |
options | SearchOptions & { requestOptions: { raw: true } } | - |
Promise<Response>
API レスポンスで解決される Promise。requestOptions.raw が true の場合は生の Response。
spaces/client.ts:835
▸ search(query, options?): Promise<Get2SpacesSearchResponse>
パラメータ
| 名前 | type |
|---|
query | string |
options? | SearchOptions |
Promise<Get2SpacesSearchResponse>
spaces/client.ts:848
▸ getBuyers(id, options): Promise<Response>
Space のチケット購入者を取得します
特定の Space の id を指定して、その Space のチケットを購入したユーザーのリストを取得します。
| 名前 | 型 | 説明 |
|---|
id | string | 取得する Space の ID。 |
options | GetBuyersOptions & { requestOptions: { raw: true } } | - |
Promise<Response>
API レスポンスを解決値とする Promise。requestOptions.raw が true の場合は生の Response オブジェクト
定義元
spaces/client.ts:1080
▸ getBuyers(id, options?): Promise<Get2SpacesIdBuyersResponse>
| 名前 | 型 |
|---|
id | string |
options? | GetBuyersOptions |
Promise<Get2SpacesIdBuyersResponse>
spaces/client.ts:1093
▸ getById(id, options): Promise<Response>
id でスペースを取得
指定した id のスペースの詳細を取得します。
| 名前 | 型 | 説明 |
|---|
id | string | 取得する Space の ID。 |
options | GetByIdOptions & { requestOptions: { raw: true } } | - |
Promise<Response>
API レスポンスで解決される Promise。requestOptions.raw が true の場合は生の Response。
spaces/client.ts:1293
▸ getById(id, options?): Promise<Get2SpacesIdResponse>
パラメータ
| 名前 | 型 |
|---|
id | string |
options? | GetByIdOptions |
Promise<Get2SpacesIdResponse>
spaces/client.ts:1306
▸ getByCreatorIds(userIds, options): Promise<Response>
作成者IDでSpacesを取得します
指定したユーザーIDが作成したSpacesの詳細を取得します。
パラメータ
| Name | Type | Description |
|---|
userIds | any[] | 検索対象とするユーザーのid。 |
options | GetByCreatorIdsOptions & { requestOptions: { raw: true } } | - |
Promise<Response>
API レスポンスで解決される Promise。requestOptions.raw が true の場合は生の Response
spaces/client.ts:1495
▸ getByCreatorIds(userIds, options?): Promise<Get2SpacesByCreatorIdsResponse>
パラメータ
| 名前 | 型 |
|---|
userIds | any[] |
options? | GetByCreatorIdsOptions |
Promise<Get2SpacesByCreatorIdsResponse>
spaces/client.ts:1508