コンストラクター
constructor
client): ListsClient
ListsClient の新しいインスタンスを作成します
パラメーター
| Name | Type | Description |
|---|---|---|
client | Client | メインの X API クライアントインスタンス |
戻り値
ListsClient
定義箇所
メソッド
getFollowers
id, options): Promise<Response>
リストのフォロワーを取得します。特定のリストをフォローしているユーザーの一覧を、その ID を指定して取得します。
パラメーター
| 名前 | 型 | 説明 |
|---|---|---|
id | string | リストのID。 |
options | GetFollowersOptions & { requestOptions: { raw: true } } | - |
戻り値
Promise<Response>
API レスポンスを返す Promise。requestOptions.raw が true の場合は生の Response
定義場所
lists/client.ts:339 ▸ getFollowers(id, options?): Promise<Get2ListsIdFollowersResponse>
パラメーター
| 名前 | 型 |
|---|---|
id | string |
options? | GetFollowersOptions |
戻り値
Promise<Get2ListsIdFollowersResponse>
定義元
lists/client.ts:352create
options): Promise<Response>
リストの作成
認証済みユーザーの新しいリストを作成します。
パラメータ
| 名前 | type |
|---|---|
options | CreateOptions & { requestOptions: { raw: true } } |
戻り値
Promise<Response>
API レスポンスを返す Promise。requestOptions.raw が true の場合は生の Response
定義元
lists/client.ts:560 ▸ create(options?): Promise<ListCreateResponse>
パラメータ
| 名前 | type |
|---|---|
options? | CreateOptions |
戻り値
Promise<ListCreateResponse>
定義場所
lists/client.ts:569getMembers
id, options): Promise<Response>
List メンバーを取得します指定した List の id によって、その List に含まれるユーザーを取得します。
パラメータ
| Name | Type | Description |
|---|---|---|
id | string | リストのID。 |
options | GetMembersOptions & { requestOptions: { raw: true } } | - |
戻り値
Promise<Response>
API レスポンス、もしくは requestOptions.raw が true の場合は生の Response を返す Promise
定義場所
lists/client.ts:665 ▸ getMembers(id, options?): Promise<Get2ListsIdMembersResponse>
パラメータ
| 名前 | 型 |
|---|---|
id | string |
options? | GetMembersOptions |
戻り値
Promise<Get2ListsIdMembersResponse>
定義場所
lists/client.ts:678addMember
id, options): Promise<Response>
リストにメンバーを追加する指定した id のリストにユーザーを追加します。
パラメーター
| Name | Type | Description |
|---|---|---|
id | string | メンバーを追加するリストのID。 |
options | AddMemberOptions & { requestOptions: { raw: true } } | - |
戻り値
Promise<Response>
API レスポンスを解決値とする Promise。requestOptions.raw が true の場合は生の Response
定義場所
lists/client.ts:890 ▸ addMember(id, options?): Promise<ListMutateResponse>
パラメータ
| 名前 | 型 |
|---|---|
id | string |
options? | AddMemberOptions |
戻り値
Promise<ListMutateResponse>
定義元
lists/client.ts:903getPosts
id, options): Promise<Response>
Get List Posts
特定のリストIDに紐づく投稿一覧を取得します。
パラメーター
| 名前 | 型 | 説明 |
|---|---|---|
id | string | リストのID。 |
options | GetPostsOptions & { requestOptions: { raw: true } } | - |
Returns
Promise<Response>
API レスポンスを返す Promise。requestOptions.raw が true の場合は生の Response を返します。
定義場所
lists/client.ts:1011 ▸ getPosts(id, options?): Promise<Get2ListsIdTweetsResponse>
パラメーター
| 名前 | 型 |
|---|---|
id | string |
options? | GetPostsOptions |
戻り値
Promise<Get2ListsIdTweetsResponse>
定義場所
lists/client.ts:1024removeMemberByUserId
id, userId, options): Promise<Response>
リストのメンバーを削除する特定のリストのidとユーザーのidを指定して、そのリストからユーザーを削除します。
Parameters
| Name | Type | Description |
|---|---|---|
id | string | メンバーを削除するリストのID。 |
userId | string | リストから削除するユーザーのID。 |
options | Object | - |
options.requestOptions | Object | - |
options.requestOptions.raw | true | - |
返り値
Promise<Response>
API レスポンス、または requestOptions.raw が true の場合は生の Response で解決される Promise
定義場所
lists/client.ts:1303 ▸ removeMemberByUserId(id, userId): Promise<ListMutateResponse>
パラメータ
| 名前 | 型 |
|---|---|
id | string |
userId | string |
戻り値
Promise<ListMutateResponse>
定義場所
lists/client.ts:1320getById
id, options): Promise<Response>
ID でリストを取得指定した ID のリストの詳細を取得します。
パラメーター
| 名前 | 型 | 説明 |
|---|---|---|
id | string | リストのID。 |
options | GetByIdOptions & { requestOptions: { raw: true } } | - |
戻り値
Promise<Response>
API レスポンスで解決される Promise、または requestOptions.raw が true の場合は生の Response オブジェクト
定義場所
lists/client.ts:1423 ▸ getById(id, options?): Promise<Get2ListsIdResponse>
パラメーター
| 名前 | 型 |
|---|---|
id | string |
options? | GetByIdOptions |
戻り値
Promise<Get2ListsIdResponse>
定義場所
lists/client.ts:1436update
id, options): Promise<Response>
リストを更新する認証済みユーザーが所有する特定のリストの詳細情報を、その識別子 (id) を指定して更新します。
Parameters
| Name | Type | Description |
|---|---|---|
id | string | 変更対象のリストのID。 |
options | UpdateOptions & { requestOptions: { raw: true } } | - |
戻り値
Promise<Response>
API レスポンス、または requestOptions.raw が true の場合は生の Response オブジェクトに解決される Promise
定義場所
lists/client.ts:1610 ▸ update(id, options?): Promise<ListUpdateResponse>
パラメーター
| 名前 | 型 |
|---|---|
id | string |
options? | UpdateOptions |
戻り値
Promise<ListUpdateResponse>
定義場所
lists/client.ts:1623delete
id, options): Promise<Response>
リストを削除する認証済みユーザーが所有する特定のリストを、その ID を指定して削除します。
パラメータ
| Name | Type | Description |
|---|---|---|
id | string | 削除するリストのID。 |
options | Object | - |
options.requestOptions | Object | - |
options.requestOptions.raw | true | - |
戻り値
Promise<Response>
API レスポンスで解決される Promise。requestOptions.raw が true の場合は生の Response。
定義元
lists/client.ts:1731 ▸ delete(id): Promise<ListDeleteResponse>
パラメーター
| 名前 | 型 |
|---|---|
id | string |
戻り値
Promise<ListDeleteResponse>