Constructores
constructor
• new CommunityNotesClient(client): CommunityNotesClient
Creates a new community notes client instance
Parámetros
Devuelve
CommunityNotesClient
Definido en
community_notes/client.ts:186Métodos
searchEligiblePosts
▸ searchEligiblePosts(testMode, options): Promise<Response>
Search for Posts Eligible for Community Notes
Returns all the posts that are eligible for community notes.
Parámetros
Devuelve
Promise<Response>
Promise resolving to the API response, or raw Response if requestOptions.raw is true
Definido en
community_notes/client.ts:231 ▸ searchEligiblePosts(testMode, options?): Promise<Get2NotesSearchPostsEligibleForNotesResponse>
Parámetros
Devuelve
Promise<Get2NotesSearchPostsEligibleForNotesResponse>
Definido en
community_notes/client.ts:244evaluate
▸ evaluate(options): Promise<Response>
Evaluate a Community Note
Endpoint to evaluate a community note.
Parámetros
Devuelve
Promise<Response>
Promise resolving to the API response, or raw Response if requestOptions.raw is true
Definido en
community_notes/client.ts:535 ▸ evaluate(options?): Promise<EvaluateNoteResponse>
Parámetros
Devuelve
Promise<EvaluateNoteResponse>
Definido en
community_notes/client.ts:544searchWritten
▸ searchWritten(testMode, options): Promise<Response>
Search for Community Notes Written
Returns all the community notes written by the user.
Parámetros
Devuelve
Promise<Response>
Promise resolving to the API response, or raw Response if requestOptions.raw is true
Definido en
community_notes/client.ts:640 ▸ searchWritten(testMode, options?): Promise<Get2NotesSearchNotesWrittenResponse>
Parámetros
Devuelve
Promise<Get2NotesSearchNotesWrittenResponse>
Definido en
community_notes/client.ts:653delete
▸ delete(id, options): Promise<Response>
Delete a Community Note
Deletes a community note.
Parámetros
Devuelve
Promise<Response>
Promise resolving to the API response, or raw Response if requestOptions.raw is true
Definido en
community_notes/client.ts:826 ▸ delete(id): Promise<DeleteNoteResponse>
Parámetros
Devuelve
Promise<DeleteNoteResponse>
Definido en
community_notes/client.ts:839create
▸ create(options): Promise<Response>
Create a Community Note
Creates a community note endpoint for LLM use case.
Parámetros
Devuelve
Promise<Response>
Promise resolving to the API response, or raw Response if requestOptions.raw is true
Definido en
community_notes/client.ts:926 ▸ create(options?): Promise<CreateNoteResponse>
Parámetros
Devuelve
Promise<CreateNoteResponse>