Constructores
constructor
• new PostsClient(client): PostsClient
Creates a new posts client instance
Parámetros
Devuelve
PostsClient
Definido en
posts/client.ts:789Métodos
getInsights28hr
▸ getInsights28hr(tweetIds, granularity, requestedMetrics, options): Promise<Response>
Get 28-hour Post insights
Retrieves engagement metrics for specified Posts over the last 28 hours.
Parámetros
Devuelve
Promise<Response>
Promise resolving to the API response, or raw Response if requestOptions.raw is true
Definido en
posts/client.ts:842 ▸ getInsights28hr(tweetIds, granularity, requestedMetrics, options?): Promise<Get2Insights28hrResponse>
Parámetros
Devuelve
Promise<Get2Insights28hrResponse>
Definido en
posts/client.ts:863getAnalytics
▸ getAnalytics(ids, endTime, startTime, granularity, options): Promise<Response>
Obtener análisis del Post
Recupera datos de análisis para los Posts especificados dentro de un rango de tiempo definido.
Parámetros
Devuelve
Promise<Response>
Promise resolving to the API response, or raw Response if requestOptions.raw is true
Definido en
posts/client.ts:1052 ▸ getAnalytics(ids, endTime, startTime, granularity, options?): Promise<Analytics>
Parámetros
Devuelve
Promise<Analytics>
Definido en
posts/client.ts:1077getReposts
▸ getReposts(id, options): Promise<Response>
Get Reposts
Retrieves a list of Posts that repost a specific Post by its ID.
Parámetros
Devuelve
Promise<Response>
Promise resolving to the API response, or raw Response if requestOptions.raw is true
Definido en
posts/client.ts:1271 ▸ getReposts(id, options?): Promise<Get2TweetsIdRetweetsResponse>
Parámetros
Devuelve
Promise<Get2TweetsIdRetweetsResponse>
Definido en
posts/client.ts:1284searchRecent
▸ searchRecent(query, options): Promise<Response>
Search recent Posts
Retrieves Posts from the last 7 days matching a search query.
Parámetros
Devuelve
Promise<Response>
Promise resolving to the API response, or raw Response if requestOptions.raw is true
Definido en
posts/client.ts:1559 ▸ searchRecent(query, options?): Promise<Get2TweetsSearchRecentResponse>
Parámetros
Devuelve
Promise<Get2TweetsSearchRecentResponse>
Definido en
posts/client.ts:1572searchAll
▸ searchAll(query, options): Promise<Response>
Search all Posts
Retrieves Posts from the full archive matching a search query.
Parámetros
Devuelve
Promise<Response>
Promise resolving to the API response, or raw Response if requestOptions.raw is true
Definido en
posts/client.ts:1968 ▸ searchAll(query, options?): Promise<Get2TweetsSearchAllResponse>
Parámetros
Devuelve
Promise<Get2TweetsSearchAllResponse>
Definido en
posts/client.ts:1981getByIds
▸ getByIds(ids, options): Promise<Response>
Obtener Posts por IDs
Recupera los detalles de varios Posts por sus IDs.
Parámetros
Devuelve
Promise<Response>
Promise resolving to the API response, or raw Response if requestOptions.raw is true
Definido en
posts/client.ts:2365 ▸ getByIds(ids, options?): Promise<Get2TweetsResponse>
Parámetros
Devuelve
Promise<Get2TweetsResponse>
Definido en
posts/client.ts:2378create
▸ create(body, options): Promise<Response>
Crear o editar Post
Crea un nuevo Post para el usuario autenticado, o edita un Post existente cuando se proporcionan edit_options.
Parámetros
Devuelve
Promise<Response>
Promise resolving to the API response, or raw Response if requestOptions.raw is true
Definido en
posts/client.ts:2622 ▸ create(body): Promise<TweetCreateResponse>
Parámetros
Devuelve
Promise<TweetCreateResponse>
Definido en
posts/client.ts:2633getQuoted
▸ getQuoted(id, options): Promise<Response>
Get Quoted Posts
Retrieves a list of Posts that quote a specific Post by its ID.
Parámetros
Devuelve
Promise<Response>
Promise resolving to the API response, or raw Response if requestOptions.raw is true
Definido en
posts/client.ts:2718 ▸ getQuoted(id, options?): Promise<Get2TweetsIdQuoteTweetsResponse>
Parámetros
Devuelve
Promise<Get2TweetsIdQuoteTweetsResponse>
Definido en
posts/client.ts:2731getCountsRecent
▸ getCountsRecent(query, options): Promise<Response>
Get count of recent Posts
Retrieves the count of Posts from the last 7 days matching a search query.
Parámetros
Devuelve
Promise<Response>
Promise resolving to the API response, or raw Response if requestOptions.raw is true
Definido en
posts/client.ts:3025 ▸ getCountsRecent(query, options?): Promise<Get2TweetsCountsRecentResponse>
Parámetros
Devuelve
Promise<Get2TweetsCountsRecentResponse>
Definido en
posts/client.ts:3038hideReply
▸ hideReply(tweetId, options): Promise<Response>
Hide reply
Hides or unhides a reply to a conversation owned by the authenticated user.
Parámetros
Devuelve
Promise<Response>
Promise resolving to the API response, or raw Response if requestOptions.raw is true
Definido en
posts/client.ts:3298 ▸ hideReply(tweetId, options?): Promise<TweetHideResponse>
Parámetros
Devuelve
Promise<TweetHideResponse>
Definido en
posts/client.ts:3311getInsightsHistorical
▸ getInsightsHistorical(tweetIds, endTime, startTime, granularity, requestedMetrics, options): Promise<Response>
Get historical Post insights
Retrieves historical engagement metrics for specified Posts within a defined time range.
Parámetros
Devuelve
Promise<Response>
Promise resolving to the API response, or raw Response if requestOptions.raw is true
Definido en
posts/client.ts:3435 ▸ getInsightsHistorical(tweetIds, endTime, startTime, granularity, requestedMetrics, options?): Promise<Get2InsightsHistoricalResponse>
Parámetros
Devuelve
Promise<Get2InsightsHistoricalResponse>
Definido en
posts/client.ts:3464getCountsAll
▸ getCountsAll(query, options): Promise<Response>
Get count of all Posts
Retrieves the count of Posts matching a search query from the full archive.
Parámetros
Devuelve
Promise<Response>
Promise resolving to the API response, or raw Response if requestOptions.raw is true
Definido en
posts/client.ts:3679 ▸ getCountsAll(query, options?): Promise<Get2TweetsCountsAllResponse>
Parámetros
Devuelve
Promise<Get2TweetsCountsAllResponse>
Definido en
posts/client.ts:3692getById
▸ getById(id, options): Promise<Response>
Obtener Post por ID
Recupera los detalles de un Post específico por su ID.
Parámetros
Devuelve
Promise<Response>
Promise resolving to the API response, or raw Response if requestOptions.raw is true
Definido en
posts/client.ts:3952 ▸ getById(id, options?): Promise<Get2TweetsIdResponse>
Parámetros
Devuelve
Promise<Get2TweetsIdResponse>
Definido en
posts/client.ts:3965delete
▸ delete(id, options): Promise<Response>
Eliminar Post
Elimina un Post específico por su ID, si es propiedad del usuario autenticado.
Parámetros
Devuelve
Promise<Response>
Promise resolving to the API response, or raw Response if requestOptions.raw is true
Definido en
posts/client.ts:4202 ▸ delete(id): Promise<TweetDeleteResponse>
Parámetros
Devuelve
Promise<TweetDeleteResponse>
Definido en
posts/client.ts:4215getLikingUsers
▸ getLikingUsers(id, options): Promise<Response>
Get Liking Users
Retrieves a list of Users who liked a specific Post by its ID.
Parámetros
Devuelve
Promise<Response>
Promise resolving to the API response, or raw Response if requestOptions.raw is true
Definido en
posts/client.ts:4306 ▸ getLikingUsers(id, options?): Promise<Get2TweetsIdLikingUsersResponse>
Parámetros
Devuelve
Promise<Get2TweetsIdLikingUsersResponse>
Definido en
posts/client.ts:4319getRepostedBy
▸ getRepostedBy(id, options): Promise<Response>
Get Reposted by
Retrieves a list of Users who reposted a specific Post by its ID.
Parámetros
Devuelve
Promise<Response>
Promise resolving to the API response, or raw Response if requestOptions.raw is true
Definido en
posts/client.ts:4525 ▸ getRepostedBy(id, options?): Promise<Get2TweetsIdRetweetedByResponse>
Parámetros
Devuelve
Promise<Get2TweetsIdRetweetedByResponse>