Skip to main content
community notes 작업을 위한 클라이언트 이 클라이언트는 X API의 community notes 엔드포인트와 상호작용하기 위한 메서드를 제공합니다. 모든 community notes 관련 작업에 대한 인증, 요청 형식화 및 응답 파싱을 처리합니다.

생성자

constructor

new CommunityNotesClient(client): CommunityNotesClient 새 community notes 클라이언트 인스턴스를 생성합니다

매개변수

반환값

CommunityNotesClient

정의 위치

community_notes/client.ts:186

메서드

searchEligiblePosts

searchEligiblePosts(testMode, options): Promise<Response> Search for Posts Eligible for Community Notes Community Notes에 적합한 모든 게시물을 반환합니다.

매개변수

반환값

Promise<Response> API 응답 또는 requestOptions.raw가 true인 경우 원본 Response로 해결되는 Promise

정의 위치

community_notes/client.ts:231 searchEligiblePosts(testMode, options?): Promise<Get2NotesSearchPostsEligibleForNotesResponse>

매개변수

반환값

Promise<Get2NotesSearchPostsEligibleForNotesResponse>

정의 위치

community_notes/client.ts:244

evaluate

evaluate(options): Promise<Response> Evaluate a Community Note Community Note를 평가하는 엔드포인트.

매개변수

반환값

Promise<Response> API 응답 또는 requestOptions.raw가 true인 경우 원본 Response로 해결되는 Promise

정의 위치

community_notes/client.ts:535 evaluate(options?): Promise<EvaluateNoteResponse>

매개변수

반환값

Promise<EvaluateNoteResponse>

정의 위치

community_notes/client.ts:544

searchWritten

searchWritten(testMode, options): Promise<Response> Search for Community Notes Written 사용자가 작성한 모든 community notes를 반환합니다.

매개변수

반환값

Promise<Response> API 응답 또는 requestOptions.raw가 true인 경우 원본 Response로 해결되는 Promise

정의 위치

community_notes/client.ts:640 searchWritten(testMode, options?): Promise<Get2NotesSearchNotesWrittenResponse>

매개변수

반환값

Promise<Get2NotesSearchNotesWrittenResponse>

정의 위치

community_notes/client.ts:653

delete

delete(id, options): Promise<Response> Delete a Community Note community note를 삭제합니다.

매개변수

반환값

Promise<Response> API 응답 또는 requestOptions.raw가 true인 경우 원본 Response로 해결되는 Promise

정의 위치

community_notes/client.ts:826 delete(id): Promise<DeleteNoteResponse>

매개변수

반환값

Promise<DeleteNoteResponse>

정의 위치

community_notes/client.ts:839

create

create(options): Promise<Response> Create a Community Note LLM 사용 사례를 위한 community note 엔드포인트를 생성합니다.

매개변수

반환값

Promise<Response> API 응답 또는 requestOptions.raw가 true인 경우 원본 Response로 해결되는 Promise

정의 위치

community_notes/client.ts:926 create(options?): Promise<CreateNoteResponse>

매개변수

반환값

Promise<CreateNoteResponse>

정의 위치

community_notes/client.ts:935