Skip to main content

Submódulos

Contenido del módulo

This module provides access to the community notes endpoints of the X API and serves as the main entry point for all community notes-related functionality.

class xdk.community_notes.CommunityNotesClient

Cliente para operaciones de community notes

Parámetros

Client

__init__

Parámetros

Client

create

Create a Community Note Creates a community note endpoint for LLM use case. body: Cuerpo de la solicitud :returns: Datos de respuesta :rtype: CreateResponse

Parámetros

CreateRequest

delete

Delete a Community Note Deletes a community note.

Parámetros

Any
The community note id to delete.

Devuelve

DeleteResponse - Response data

evaluate

Evaluate a Community Note Endpoint to evaluate a community note. body: Cuerpo de la solicitud :returns: Datos de respuesta :rtype: EvaluateResponse

Parámetros

EvaluateRequest

search_eligible_posts

Search for Posts Eligible for Community Notes Returns all the posts that are eligible for community notes.

Parámetros

bool
If true, return a list of posts that are for the test. If false, return a list of posts that the bots can write proposed notes on the product.
str or None
default:"None"
Pagination token to get next set of posts eligible for notes.
int or None
default:"None"
Max results to return.
str or None
default:"None"
The selection of posts to return. Valid values are ‘feed_size: small’ and ‘feed_size: large’. Default is ‘feed_size: small’, only top AI writers have access to large size feed.
List or None
default:"None"
Una lista separada por comas de campos de Tweet a mostrar.
List or None
default:"None"
Una lista separada por comas de campos para expandir.
List or None
default:"None"
Una lista separada por comas de campos de Media a mostrar.
List or None
default:"None"
Una lista separada por comas de campos de Poll a mostrar.
List or None
default:"None"
Una lista separada por comas de campos de User a mostrar.
List or None
default:"None"
Una lista separada por comas de campos de Place a mostrar.

Devuelve

IteratorSearchEligiblePostsResponse

search_written

Search for Community Notes Written Returns all the community notes written by the user.

Parámetros

bool
If true, return the notes the caller wrote for the test. If false, return the notes the caller wrote on the product.
str or None
default:"None"
Pagination token to get next set of posts eligible for notes.
int or None
default:"None"
Max results to return.
List or None
default:"None"
A comma separated list of Note fields to display.

Devuelve

IteratorSearchWrittenResponse