생성자
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:863getAnalytics
▸ 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:1077getReposts
▸ 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:1284searchRecent
▸ 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:1572searchAll
▸ 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:1981getByIds
▸ 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:2378create
▸ 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:2633getQuoted
▸ 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:2731getCountsRecent
▸ 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:3038hideReply
▸ 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:3311getInsightsHistorical
▸ 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:3464getCountsAll
▸ 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:3692getById
▸ 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:3965delete
▸ 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:4215getLikingUsers
▸ 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:4319getRepostedBy
▸ 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>