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.
コミュニティノート用クライアント
このクライアントは、X API のコミュニティノート用エンドポイントとやり取りするためのメソッドを提供します。認証、リクエストの整形、レスポンスの解析を行い、コミュニティノートに関連するすべての操作を処理します。
• new CommunityNotesClient(client): CommunityNotesClient
新しい CommunityNotesClient のインスタンスを作成します
| Name | Type | Description |
|---|
client | Client | X API 用のメイン Client インスタンス |
戻り値
CommunityNotesClient
定義元
community_notes/client.ts:186
▸ searchEligiblePosts(testMode, options): Promise<Response>
コミュニティノートの対象となる投稿を検索します。
コミュニティノートの対象となるすべての投稿を返します。
| Name | Type | Description |
|---|
testMode | boolean | true の場合、テスト用の投稿のリストを返します。false の場合、ボットがプロダクトに関する提案ノートを作成できる投稿のリストを返します。 |
options | SearchEligiblePostsOptions & { requestOptions: { raw: true } } | - |
戻り値
Promise<Response>
API レスポンスに解決される Promise。requestOptions.raw が true の場合は生の Response
community_notes/client.ts:231
▸ searchEligiblePosts(testMode, options?): Promise<Get2NotesSearchPostsEligibleForNotesResponse>
| 名前 | type |
|---|
testMode | boolean |
options? | SearchEligiblePostsOptions |
戻り値
Promise<Get2NotesSearchPostsEligibleForNotesResponse>
community_notes/client.ts:244
▸ evaluate(options): Promise<Response>
コミュニティノートの評価を行います
コミュニティノートを評価するためのエンドポイントです。
パラメータ
| 名前 | type |
|---|
options | EvaluateOptions & { requestOptions: { raw: true } } |
戻り値
Promise<Response>
API レスポンス、または requestOptions.raw が true の場合は生の Response を返す Promise
community_notes/client.ts:535
▸ evaluate(options?): Promise<EvaluateNoteResponse>
| 名前 | Type |
|---|
options? | EvaluateOptions |
戻り値
Promise<EvaluateNoteResponse>
定義元
community_notes/client.ts:544
▸ searchWritten(testMode, options): Promise<Response>
投稿したコミュニティノートを検索します
ユーザーが投稿したすべてのコミュニティノートを返します。
| 名前 | type | 説明 |
|---|
testMode | boolean | true の場合はテスト用に呼び出し元が作成したノートを返します。false の場合はプロダクト上で呼び出し元が作成したノートを返します。 |
options | SearchWrittenOptions & { requestOptions: { raw: true } } | - |
Promise<Response>
API レスポンス (requestOptions.raw が true の場合は生の Response) で解決される Promise
community_notes/client.ts:640
▸ searchWritten(testMode, options?): Promise<Get2NotesSearchNotesWrittenResponse>
パラメータ
| 名前 | type |
|---|
testMode | boolean |
options? | SearchWrittenOptions |
戻り値
Promise<Get2NotesSearchNotesWrittenResponse>
定義元
community_notes/client.ts:653
▸ delete(id, options): Promise<Response>
コミュニティノートの削除
コミュニティノートを削除します。
パラメータ
| Name | Type | Description |
|---|
id | string | 削除するコミュニティノートのid。 |
options | Object | - |
options.requestOptions | Object | - |
options.requestOptions.raw | true | - |
Promise<Response>
API レスポンスで解決される Promise。requestOptions.raw が true の場合は生の Response を返します
community_notes/client.ts:826
▸ delete(id): Promise<DeleteNoteResponse>
パラメータ
戻り値
Promise<DeleteNoteResponse>
定義元
community_notes/client.ts:839
▸ create(options): Promise<Response>
コミュニティノートを作成します
LLM のユースケース向けのコミュニティノート作成エンドポイントです。
| 名前 | type |
|---|
options | CreateOptions & { requestOptions: { raw: true } } |
戻り値
Promise<Response>
API レスポンスで解決される Promise。requestOptions.raw が true の場合は生の Response。
定義箇所
community_notes/client.ts:926
▸ create(options?): Promise<CreateNoteResponse>
| 名前 | type |
|---|
options? | CreateOptions |
戻り値
Promise<CreateNoteResponse>
定義元
community_notes/client.ts:935