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

생성자

constructor

new PostsClient(client): PostsClient 새로운 posts 클라이언트 인스턴스를 생성합니다.

매개변수

반환값

PostsClient

정의 위치

posts/client.ts:789

메서드

getInsights28hr

getInsights28hr(tweetIds, granularity, requestedMetrics, options): Promise<Response> 28시간 Post 인사이트 조회 Retrieves engagement metrics for specified Posts over the last 28 hours.

매개변수

반환값

Promise<Response> Promise resolving to the API response, or raw Response if requestOptions.raw is true

정의 위치

posts/client.ts:842 getInsights28hr(tweetIds, granularity, requestedMetrics, options?): Promise<Get2Insights28hrResponse>

매개변수

반환값

Promise<Get2Insights28hrResponse>

정의 위치

posts/client.ts:863

getAnalytics

getAnalytics(ids, endTime, startTime, granularity, options): Promise<Response> Post 분석 조회 지정된 시간 범위 내에서 특정 Posts의 분석 데이터를 가져옵니다.

매개변수

반환값

Promise<Response> Promise resolving to the API response, or raw Response if requestOptions.raw is true

정의 위치

posts/client.ts:1052 getAnalytics(ids, endTime, startTime, granularity, options?): Promise<Analytics>

매개변수

반환값

Promise<Analytics>

정의 위치

posts/client.ts:1077

getReposts

getReposts(id, options): Promise<Response> 리포스트 조회 Retrieves a list of Posts that repost a specific Post by its ID.

매개변수

반환값

Promise<Response> Promise resolving to the API response, or raw Response if requestOptions.raw is true

정의 위치

posts/client.ts:1271 getReposts(id, options?): Promise<Get2TweetsIdRetweetsResponse>

매개변수

반환값

Promise<Get2TweetsIdRetweetsResponse>

정의 위치

posts/client.ts:1284

searchRecent

searchRecent(query, options): Promise<Response> Search recent Posts Retrieves Posts from the last 7 days matching a search query.

매개변수

반환값

Promise<Response> Promise resolving to the API response, or raw Response if requestOptions.raw is true

정의 위치

posts/client.ts:1559 searchRecent(query, options?): Promise<Get2TweetsSearchRecentResponse>

매개변수

반환값

Promise<Get2TweetsSearchRecentResponse>

정의 위치

posts/client.ts:1572

searchAll

searchAll(query, options): Promise<Response> Search all Posts Retrieves Posts from the full archive matching a search query.

매개변수

반환값

Promise<Response> Promise resolving to the API response, or raw Response if requestOptions.raw is true

정의 위치

posts/client.ts:1968 searchAll(query, options?): Promise<Get2TweetsSearchAllResponse>

매개변수

반환값

Promise<Get2TweetsSearchAllResponse>

정의 위치

posts/client.ts:1981

getByIds

getByIds(ids, options): Promise<Response> ID로 Post 목록 조회 Retrieves details of multiple Posts by their IDs.

매개변수

반환값

Promise<Response> Promise resolving to the API response, or raw Response if requestOptions.raw is true

정의 위치

posts/client.ts:2365 getByIds(ids, options?): Promise<Get2TweetsResponse>

매개변수

반환값

Promise<Get2TweetsResponse>

정의 위치

posts/client.ts:2378

create

create(body, options): Promise<Response> Post 생성 또는 편집 인증된 사용자를 위해 새로운 Post를 생성하거나, edit_options가 제공된 경우 기존 Post를 편집합니다.

매개변수

반환값

Promise<Response> Promise resolving to the API response, or raw Response if requestOptions.raw is true

정의 위치

posts/client.ts:2622 create(body): Promise<TweetCreateResponse>

매개변수

반환값

Promise<TweetCreateResponse>

정의 위치

posts/client.ts:2633

getQuoted

getQuoted(id, options): Promise<Response> 인용된 Post 조회 Retrieves a list of Posts that quote a specific Post by its ID.

매개변수

반환값

Promise<Response> Promise resolving to the API response, or raw Response if requestOptions.raw is true

정의 위치

posts/client.ts:2718 getQuoted(id, options?): Promise<Get2TweetsIdQuoteTweetsResponse>

매개변수

반환값

Promise<Get2TweetsIdQuoteTweetsResponse>

정의 위치

posts/client.ts:2731

getCountsRecent

getCountsRecent(query, options): Promise<Response> 최근 Post 수 조회 Retrieves the count of Posts from the last 7 days matching a search query.

매개변수

반환값

Promise<Response> Promise resolving to the API response, or raw Response if requestOptions.raw is true

정의 위치

posts/client.ts:3025 getCountsRecent(query, options?): Promise<Get2TweetsCountsRecentResponse>

매개변수

반환값

Promise<Get2TweetsCountsRecentResponse>

정의 위치

posts/client.ts:3038

hideReply

hideReply(tweetId, options): Promise<Response> Hide reply Hides or unhides a reply to a conversation owned by the authenticated user.

매개변수

반환값

Promise<Response> Promise resolving to the API response, or raw Response if requestOptions.raw is true

정의 위치

posts/client.ts:3298 hideReply(tweetId, options?): Promise<TweetHideResponse>

매개변수

반환값

Promise<TweetHideResponse>

정의 위치

posts/client.ts:3311

getInsightsHistorical

getInsightsHistorical(tweetIds, endTime, startTime, granularity, requestedMetrics, options): Promise<Response> 과거 Post 인사이트 조회 Retrieves historical engagement metrics for specified Posts within a defined time range.

매개변수

반환값

Promise<Response> Promise resolving to the API response, or raw Response if requestOptions.raw is true

정의 위치

posts/client.ts:3435 getInsightsHistorical(tweetIds, endTime, startTime, granularity, requestedMetrics, options?): Promise<Get2InsightsHistoricalResponse>

매개변수

반환값

Promise<Get2InsightsHistoricalResponse>

정의 위치

posts/client.ts:3464

getCountsAll

getCountsAll(query, options): Promise<Response> 모든 Post 수 조회 Retrieves the count of Posts matching a search query from the full archive.

매개변수

반환값

Promise<Response> Promise resolving to the API response, or raw Response if requestOptions.raw is true

정의 위치

posts/client.ts:3679 getCountsAll(query, options?): Promise<Get2TweetsCountsAllResponse>

매개변수

반환값

Promise<Get2TweetsCountsAllResponse>

정의 위치

posts/client.ts:3692

getById

getById(id, options): Promise<Response> ID로 Post 조회 특정 Post의 세부 정보를 해당 ID로 가져옵니다.

매개변수

반환값

Promise<Response> Promise resolving to the API response, or raw Response if requestOptions.raw is true

정의 위치

posts/client.ts:3952 getById(id, options?): Promise<Get2TweetsIdResponse>

매개변수

반환값

Promise<Get2TweetsIdResponse>

정의 위치

posts/client.ts:3965

delete

delete(id, options): Promise<Response> Post 삭제 인증된 사용자가 소유한 경우, 특정 Post를 해당 ID로 삭제합니다.

매개변수

반환값

Promise<Response> Promise resolving to the API response, or raw Response if requestOptions.raw is true

정의 위치

posts/client.ts:4202 delete(id): Promise<TweetDeleteResponse>

매개변수

반환값

Promise<TweetDeleteResponse>

정의 위치

posts/client.ts:4215

getLikingUsers

getLikingUsers(id, options): Promise<Response> 좋아요를 누른 사용자 조회 Retrieves a list of Users who liked a specific Post by its ID.

매개변수

반환값

Promise<Response> Promise resolving to the API response, or raw Response if requestOptions.raw is true

정의 위치

posts/client.ts:4306 getLikingUsers(id, options?): Promise<Get2TweetsIdLikingUsersResponse>

매개변수

반환값

Promise<Get2TweetsIdLikingUsersResponse>

정의 위치

posts/client.ts:4319

getRepostedBy

getRepostedBy(id, options): Promise<Response> 리포스트한 사용자 조회 Retrieves a list of Users who reposted a specific Post by its ID.

매개변수

반환값

Promise<Response> Promise resolving to the API response, or raw Response if requestOptions.raw is true

정의 위치

posts/client.ts:4525 getRepostedBy(id, options?): Promise<Get2TweetsIdRetweetedByResponse>

매개변수

반환값

Promise<Get2TweetsIdRetweetedByResponse>

정의 위치

posts/client.ts:4538