Skip to main content

하위 모듈

모듈 내용

이 모듈은 X API의 community notes 엔드포인트에 대한 액세스를 제공합니다. 모든 community notes-related 기능의 주요 진입점 역할을 합니다.

class xdk.community_notes.CommunityNotesClient

커뮤니티 노트 작업을 위한 클라이언트

매개변수

Client

__init__

매개변수

Client

create

Create a Community Note Creates a community note endpoint for LLM use case. body: 요청 본문 :returns: 응답 데이터 :rtype: CreateResponse

매개변수

CreateRequest

delete

Delete a Community Note Deletes a community note.

매개변수

Any
The community note id to delete.

반환값

DeleteResponse - 응답 데이터

evaluate

Evaluate a Community Note Endpoint to evaluate a community note. body: 요청 본문 :returns: 응답 데이터 :rtype: EvaluateResponse

매개변수

EvaluateRequest

search_eligible_posts

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

매개변수

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"
표시할 Tweet 필드의 쉼표로 구분된 목록입니다.
List or None
default:"None"
확장할 필드의 쉼표로 구분된 목록입니다.
List or None
default:"None"
표시할 Media 필드의 쉼표로 구분된 목록입니다.
List or None
default:"None"
표시할 Poll 필드의 쉼표로 구분된 목록입니다.
List or None
default:"None"
표시할 User 필드의 쉼표로 구분된 목록입니다.
List or None
default:"None"
표시할 Place 필드의 쉼표로 구분된 목록입니다.

반환값

IteratorSearchEligiblePostsResponse

search_written

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

매개변수

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.

반환값

IteratorSearchWrittenResponse