> ## Documentation Index
> Fetch the complete documentation index at: https://docs.x.com/llms.txt
> Use this file to discover all available pages before exploring further.

# PostsClient

> Reference for the PostsClient class in the X API TypeScript SDK. Methods, parameters, and return types for the X API v2 posts endpoints.

Cliente para operaciones de posts

This client provides methods for interacting with the posts endpoints
of the X API. It handles authentication, request formatting, and response
parsing for all posts related operations.

## Constructores

### constructor

• **new PostsClient**(`client`): [`PostsClient`](/xdks/typescript/reference/classes/PostsClient)

Creates a new posts client instance

#### Parámetros

| Nombre   | Tipo                                                  | Descripción                    |
| :------- | :---------------------------------------------------- | :----------------------------- |
| `client` | [`Client`](/xdks/typescript/reference/classes/Client) | The main X API client instance |

#### Devuelve

[`PostsClient`](/xdks/typescript/reference/classes/PostsClient)

#### Definido en

[posts/client.ts:789](https://github.com/xdevplatform/xdk-typescript/blob/81aacb165e0802e188f608bdf462b60fc4e713a2/src/posts/client.ts#L789)

## Mé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

| Nombre             | Tipo                                                                   | Descripción                             |
| :----------------- | :--------------------------------------------------------------------- | :-------------------------------------- |
| `tweetIds`         | `any`\[]                                                               | List of PostIds for 28hr metrics.       |
| `granularity`      | `string`                                                               | granularity of metrics response.        |
| `requestedMetrics` | `any`\[]                                                               | request metrics for historical request. |
| `options`          | `GetInsights28hrOptions` & \{ `requestOptions`: \{ `raw`: `true`  }  } | -                                       |

#### Devuelve

`Promise`\<`Response`>

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

#### Definido en

[posts/client.ts:842](https://github.com/xdevplatform/xdk-typescript/blob/81aacb165e0802e188f608bdf462b60fc4e713a2/src/posts/client.ts#L842)

▸ **getInsights28hr**(`tweetIds`, `granularity`, `requestedMetrics`, `options?`): `Promise`\<[`Get2Insights28hrResponse`](/xdks/typescript/reference/interfaces/Schemas.Get2Insights28hrResponse)>

#### Parámetros

| Nombre             | Tipo                     |
| :----------------- | :----------------------- |
| `tweetIds`         | `any`\[]                 |
| `granularity`      | `string`                 |
| `requestedMetrics` | `any`\[]                 |
| `options?`         | `GetInsights28hrOptions` |

#### Devuelve

`Promise`\<[`Get2Insights28hrResponse`](/xdks/typescript/reference/interfaces/Schemas.Get2Insights28hrResponse)>

#### Definido en

[posts/client.ts:863](https://github.com/xdevplatform/xdk-typescript/blob/81aacb165e0802e188f608bdf462b60fc4e713a2/src/posts/client.ts#L863)

***

### getAnalytics

▸ **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

| Nombre        | Tipo                                                                | Descripción                                                                                |
| :------------ | :------------------------------------------------------------------ | :----------------------------------------------------------------------------------------- |
| `ids`         | `any`\[]                                                            | Una lista separada por comas de IDs de Post. Se permiten hasta 100 en una sola solicitud.  |
| `endTime`     | `string`                                                            | YYYY-MM-DDTHH:mm:ssZ. La marca de tiempo UTC que representa el final del rango de tiempo.  |
| `startTime`   | `string`                                                            | YYYY-MM-DDTHH:mm:ssZ. La marca de tiempo UTC que representa el inicio del rango de tiempo. |
| `granularity` | `string`                                                            | La granularidad para los resultados de conteos de búsqueda.                                |
| `options`     | `GetAnalyticsOptions` & \{ `requestOptions`: \{ `raw`: `true`  }  } | -                                                                                          |

#### Devuelve

`Promise`\<`Response`>

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

#### Definido en

[posts/client.ts:1052](https://github.com/xdevplatform/xdk-typescript/blob/81aacb165e0802e188f608bdf462b60fc4e713a2/src/posts/client.ts#L1052)

▸ **getAnalytics**(`ids`, `endTime`, `startTime`, `granularity`, `options?`): `Promise`\<[`Analytics`](/xdks/typescript/reference/interfaces/Schemas.Analytics)>

#### Parámetros

| Nombre        | Tipo                  |
| :------------ | :-------------------- |
| `ids`         | `any`\[]              |
| `endTime`     | `string`              |
| `startTime`   | `string`              |
| `granularity` | `string`              |
| `options?`    | `GetAnalyticsOptions` |

#### Devuelve

`Promise`\<[`Analytics`](/xdks/typescript/reference/interfaces/Schemas.Analytics)>

#### Definido en

[posts/client.ts:1077](https://github.com/xdevplatform/xdk-typescript/blob/81aacb165e0802e188f608bdf462b60fc4e713a2/src/posts/client.ts#L1077)

***

### getReposts

▸ **getReposts**(`id`, `options`): `Promise`\<`Response`>

Get Reposts
Retrieves a list of Posts that repost a specific Post by its ID.

#### Parámetros

| Nombre    | Tipo                                                              | Descripción          |
| :-------- | :---------------------------------------------------------------- | :------------------- |
| `id`      | `string`                                                          | Un único ID de Post. |
| `options` | `GetRepostsOptions` & \{ `requestOptions`: \{ `raw`: `true`  }  } | -                    |

#### Devuelve

`Promise`\<`Response`>

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

#### Definido en

[posts/client.ts:1271](https://github.com/xdevplatform/xdk-typescript/blob/81aacb165e0802e188f608bdf462b60fc4e713a2/src/posts/client.ts#L1271)

▸ **getReposts**(`id`, `options?`): `Promise`\<[`Get2TweetsIdRetweetsResponse`](/xdks/typescript/reference/interfaces/Schemas.Get2TweetsIdRetweetsResponse)>

#### Parámetros

| Nombre     | Tipo                |
| :--------- | :------------------ |
| `id`       | `string`            |
| `options?` | `GetRepostsOptions` |

#### Devuelve

`Promise`\<[`Get2TweetsIdRetweetsResponse`](/xdks/typescript/reference/interfaces/Schemas.Get2TweetsIdRetweetsResponse)>

#### Definido en

[posts/client.ts:1284](https://github.com/xdevplatform/xdk-typescript/blob/81aacb165e0802e188f608bdf462b60fc4e713a2/src/posts/client.ts#L1284)

***

### searchRecent

▸ **searchRecent**(`query`, `options`): `Promise`\<`Response`>

Search recent Posts
Retrieves Posts from the last 7 days matching a search query.

#### Parámetros

| Nombre    | Tipo                                                                | Descripción                                                                                                                             |
| :-------- | :------------------------------------------------------------------ | :-------------------------------------------------------------------------------------------------------------------------------------- |
| `query`   | `string`                                                            | One query/rule/filter for matching Posts. Refer to [https://t.co/rulelength](https://t.co/rulelength) to identify the max query length. |
| `options` | `SearchRecentOptions` & \{ `requestOptions`: \{ `raw`: `true`  }  } | -                                                                                                                                       |

#### Devuelve

`Promise`\<`Response`>

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

#### Definido en

[posts/client.ts:1559](https://github.com/xdevplatform/xdk-typescript/blob/81aacb165e0802e188f608bdf462b60fc4e713a2/src/posts/client.ts#L1559)

▸ **searchRecent**(`query`, `options?`): `Promise`\<[`Get2TweetsSearchRecentResponse`](/xdks/typescript/reference/interfaces/Schemas.Get2TweetsSearchRecentResponse)>

#### Parámetros

| Nombre     | Tipo                  |
| :--------- | :-------------------- |
| `query`    | `string`              |
| `options?` | `SearchRecentOptions` |

#### Devuelve

`Promise`\<[`Get2TweetsSearchRecentResponse`](/xdks/typescript/reference/interfaces/Schemas.Get2TweetsSearchRecentResponse)>

#### Definido en

[posts/client.ts:1572](https://github.com/xdevplatform/xdk-typescript/blob/81aacb165e0802e188f608bdf462b60fc4e713a2/src/posts/client.ts#L1572)

***

### searchAll

▸ **searchAll**(`query`, `options`): `Promise`\<`Response`>

Search all Posts
Retrieves Posts from the full archive matching a search query.

#### Parámetros

| Nombre    | Tipo                                                             | Descripción                                                                                                                             |
| :-------- | :--------------------------------------------------------------- | :-------------------------------------------------------------------------------------------------------------------------------------- |
| `query`   | `string`                                                         | One query/rule/filter for matching Posts. Refer to [https://t.co/rulelength](https://t.co/rulelength) to identify the max query length. |
| `options` | `SearchAllOptions` & \{ `requestOptions`: \{ `raw`: `true`  }  } | -                                                                                                                                       |

#### Devuelve

`Promise`\<`Response`>

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

#### Definido en

[posts/client.ts:1968](https://github.com/xdevplatform/xdk-typescript/blob/81aacb165e0802e188f608bdf462b60fc4e713a2/src/posts/client.ts#L1968)

▸ **searchAll**(`query`, `options?`): `Promise`\<[`Get2TweetsSearchAllResponse`](/xdks/typescript/reference/interfaces/Schemas.Get2TweetsSearchAllResponse)>

#### Parámetros

| Nombre     | Tipo               |
| :--------- | :----------------- |
| `query`    | `string`           |
| `options?` | `SearchAllOptions` |

#### Devuelve

`Promise`\<[`Get2TweetsSearchAllResponse`](/xdks/typescript/reference/interfaces/Schemas.Get2TweetsSearchAllResponse)>

#### Definido en

[posts/client.ts:1981](https://github.com/xdevplatform/xdk-typescript/blob/81aacb165e0802e188f608bdf462b60fc4e713a2/src/posts/client.ts#L1981)

***

### getByIds

▸ **getByIds**(`ids`, `options`): `Promise`\<`Response`>

Obtener Posts por IDs
Recupera los detalles de varios Posts por sus IDs.

#### Parámetros

| Nombre    | Tipo                                                            | Descripción                                                                               |
| :-------- | :-------------------------------------------------------------- | :---------------------------------------------------------------------------------------- |
| `ids`     | `any`\[]                                                        | Una lista separada por comas de IDs de Post. Se permiten hasta 100 en una sola solicitud. |
| `options` | `GetByIdsOptions` & \{ `requestOptions`: \{ `raw`: `true`  }  } | -                                                                                         |

#### Devuelve

`Promise`\<`Response`>

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

#### Definido en

[posts/client.ts:2365](https://github.com/xdevplatform/xdk-typescript/blob/81aacb165e0802e188f608bdf462b60fc4e713a2/src/posts/client.ts#L2365)

▸ **getByIds**(`ids`, `options?`): `Promise`\<[`Get2TweetsResponse`](/xdks/typescript/reference/interfaces/Schemas.Get2TweetsResponse)>

#### Parámetros

| Nombre     | Tipo              |
| :--------- | :---------------- |
| `ids`      | `any`\[]          |
| `options?` | `GetByIdsOptions` |

#### Devuelve

`Promise`\<[`Get2TweetsResponse`](/xdks/typescript/reference/interfaces/Schemas.Get2TweetsResponse)>

#### Definido en

[posts/client.ts:2378](https://github.com/xdevplatform/xdk-typescript/blob/81aacb165e0802e188f608bdf462b60fc4e713a2/src/posts/client.ts#L2378)

***

### create

▸ **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

| Nombre                       | Tipo                                                                                     | Descripción  |
| :--------------------------- | :--------------------------------------------------------------------------------------- | :----------- |
| `body`                       | [`TweetCreateRequest`](/xdks/typescript/reference/interfaces/Schemas.TweetCreateRequest) | Request body |
| `options`                    | `Object`                                                                                 | -            |
| `options.requestOptions`     | `Object`                                                                                 | -            |
| `options.requestOptions.raw` | `true`                                                                                   | -            |

#### Devuelve

`Promise`\<`Response`>

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

#### Definido en

[posts/client.ts:2622](https://github.com/xdevplatform/xdk-typescript/blob/81aacb165e0802e188f608bdf462b60fc4e713a2/src/posts/client.ts#L2622)

▸ **create**(`body`): `Promise`\<[`TweetCreateResponse`](/xdks/typescript/reference/interfaces/Schemas.TweetCreateResponse)>

#### Parámetros

| Nombre | Tipo                                                                                     |
| :----- | :--------------------------------------------------------------------------------------- |
| `body` | [`TweetCreateRequest`](/xdks/typescript/reference/interfaces/Schemas.TweetCreateRequest) |

#### Devuelve

`Promise`\<[`TweetCreateResponse`](/xdks/typescript/reference/interfaces/Schemas.TweetCreateResponse)>

#### Definido en

[posts/client.ts:2633](https://github.com/xdevplatform/xdk-typescript/blob/81aacb165e0802e188f608bdf462b60fc4e713a2/src/posts/client.ts#L2633)

***

### getQuoted

▸ **getQuoted**(`id`, `options`): `Promise`\<`Response`>

Get Quoted Posts
Retrieves a list of Posts that quote a specific Post by its ID.

#### Parámetros

| Nombre    | Tipo                                                             | Descripción          |
| :-------- | :--------------------------------------------------------------- | :------------------- |
| `id`      | `string`                                                         | Un único ID de Post. |
| `options` | `GetQuotedOptions` & \{ `requestOptions`: \{ `raw`: `true`  }  } | -                    |

#### Devuelve

`Promise`\<`Response`>

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

#### Definido en

[posts/client.ts:2718](https://github.com/xdevplatform/xdk-typescript/blob/81aacb165e0802e188f608bdf462b60fc4e713a2/src/posts/client.ts#L2718)

▸ **getQuoted**(`id`, `options?`): `Promise`\<[`Get2TweetsIdQuoteTweetsResponse`](/xdks/typescript/reference/interfaces/Schemas.Get2TweetsIdQuoteTweetsResponse)>

#### Parámetros

| Nombre     | Tipo               |
| :--------- | :----------------- |
| `id`       | `string`           |
| `options?` | `GetQuotedOptions` |

#### Devuelve

`Promise`\<[`Get2TweetsIdQuoteTweetsResponse`](/xdks/typescript/reference/interfaces/Schemas.Get2TweetsIdQuoteTweetsResponse)>

#### Definido en

[posts/client.ts:2731](https://github.com/xdevplatform/xdk-typescript/blob/81aacb165e0802e188f608bdf462b60fc4e713a2/src/posts/client.ts#L2731)

***

### getCountsRecent

▸ **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

| Nombre    | Tipo                                                                   | Descripción                                                                                                                             |
| :-------- | :--------------------------------------------------------------------- | :-------------------------------------------------------------------------------------------------------------------------------------- |
| `query`   | `string`                                                               | One query/rule/filter for matching Posts. Refer to [https://t.co/rulelength](https://t.co/rulelength) to identify the max query length. |
| `options` | `GetCountsRecentOptions` & \{ `requestOptions`: \{ `raw`: `true`  }  } | -                                                                                                                                       |

#### Devuelve

`Promise`\<`Response`>

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

#### Definido en

[posts/client.ts:3025](https://github.com/xdevplatform/xdk-typescript/blob/81aacb165e0802e188f608bdf462b60fc4e713a2/src/posts/client.ts#L3025)

▸ **getCountsRecent**(`query`, `options?`): `Promise`\<[`Get2TweetsCountsRecentResponse`](/xdks/typescript/reference/interfaces/Schemas.Get2TweetsCountsRecentResponse)>

#### Parámetros

| Nombre     | Tipo                     |
| :--------- | :----------------------- |
| `query`    | `string`                 |
| `options?` | `GetCountsRecentOptions` |

#### Devuelve

`Promise`\<[`Get2TweetsCountsRecentResponse`](/xdks/typescript/reference/interfaces/Schemas.Get2TweetsCountsRecentResponse)>

#### Definido en

[posts/client.ts:3038](https://github.com/xdevplatform/xdk-typescript/blob/81aacb165e0802e188f608bdf462b60fc4e713a2/src/posts/client.ts#L3038)

***

### hideReply

▸ **hideReply**(`tweetId`, `options`): `Promise`\<`Response`>

Hide reply
Hides or unhides a reply to a conversation owned by the authenticated user.

#### Parámetros

| Nombre    | Tipo                                                             | Descripción                                          |
| :-------- | :--------------------------------------------------------------- | :--------------------------------------------------- |
| `tweetId` | `string`                                                         | The ID of the reply that you want to hide or unhide. |
| `options` | `HideReplyOptions` & \{ `requestOptions`: \{ `raw`: `true`  }  } | -                                                    |

#### Devuelve

`Promise`\<`Response`>

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

#### Definido en

[posts/client.ts:3298](https://github.com/xdevplatform/xdk-typescript/blob/81aacb165e0802e188f608bdf462b60fc4e713a2/src/posts/client.ts#L3298)

▸ **hideReply**(`tweetId`, `options?`): `Promise`\<[`TweetHideResponse`](/xdks/typescript/reference/interfaces/Schemas.TweetHideResponse)>

#### Parámetros

| Nombre     | Tipo               |
| :--------- | :----------------- |
| `tweetId`  | `string`           |
| `options?` | `HideReplyOptions` |

#### Devuelve

`Promise`\<[`TweetHideResponse`](/xdks/typescript/reference/interfaces/Schemas.TweetHideResponse)>

#### Definido en

[posts/client.ts:3311](https://github.com/xdevplatform/xdk-typescript/blob/81aacb165e0802e188f608bdf462b60fc4e713a2/src/posts/client.ts#L3311)

***

### getInsightsHistorical

▸ **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

| Nombre             | Tipo                                                                         | Descripción                                                                                |
| :----------------- | :--------------------------------------------------------------------------- | :----------------------------------------------------------------------------------------- |
| `tweetIds`         | `any`\[]                                                                     | List of PostIds for historical metrics.                                                    |
| `endTime`          | `string`                                                                     | YYYY-MM-DDTHH:mm:ssZ. La marca de tiempo UTC que representa el final del rango de tiempo.  |
| `startTime`        | `string`                                                                     | YYYY-MM-DDTHH:mm:ssZ. La marca de tiempo UTC que representa el inicio del rango de tiempo. |
| `granularity`      | `string`                                                                     | granularity of metrics response.                                                           |
| `requestedMetrics` | `any`\[]                                                                     | request metrics for historical request.                                                    |
| `options`          | `GetInsightsHistoricalOptions` & \{ `requestOptions`: \{ `raw`: `true`  }  } | -                                                                                          |

#### Devuelve

`Promise`\<`Response`>

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

#### Definido en

[posts/client.ts:3435](https://github.com/xdevplatform/xdk-typescript/blob/81aacb165e0802e188f608bdf462b60fc4e713a2/src/posts/client.ts#L3435)

▸ **getInsightsHistorical**(`tweetIds`, `endTime`, `startTime`, `granularity`, `requestedMetrics`, `options?`): `Promise`\<[`Get2InsightsHistoricalResponse`](/xdks/typescript/reference/interfaces/Schemas.Get2InsightsHistoricalResponse)>

#### Parámetros

| Nombre             | Tipo                           |
| :----------------- | :----------------------------- |
| `tweetIds`         | `any`\[]                       |
| `endTime`          | `string`                       |
| `startTime`        | `string`                       |
| `granularity`      | `string`                       |
| `requestedMetrics` | `any`\[]                       |
| `options?`         | `GetInsightsHistoricalOptions` |

#### Devuelve

`Promise`\<[`Get2InsightsHistoricalResponse`](/xdks/typescript/reference/interfaces/Schemas.Get2InsightsHistoricalResponse)>

#### Definido en

[posts/client.ts:3464](https://github.com/xdevplatform/xdk-typescript/blob/81aacb165e0802e188f608bdf462b60fc4e713a2/src/posts/client.ts#L3464)

***

### getCountsAll

▸ **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

| Nombre    | Tipo                                                                | Descripción                                                                                                                             |
| :-------- | :------------------------------------------------------------------ | :-------------------------------------------------------------------------------------------------------------------------------------- |
| `query`   | `string`                                                            | One query/rule/filter for matching Posts. Refer to [https://t.co/rulelength](https://t.co/rulelength) to identify the max query length. |
| `options` | `GetCountsAllOptions` & \{ `requestOptions`: \{ `raw`: `true`  }  } | -                                                                                                                                       |

#### Devuelve

`Promise`\<`Response`>

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

#### Definido en

[posts/client.ts:3679](https://github.com/xdevplatform/xdk-typescript/blob/81aacb165e0802e188f608bdf462b60fc4e713a2/src/posts/client.ts#L3679)

▸ **getCountsAll**(`query`, `options?`): `Promise`\<[`Get2TweetsCountsAllResponse`](/xdks/typescript/reference/interfaces/Schemas.Get2TweetsCountsAllResponse)>

#### Parámetros

| Nombre     | Tipo                  |
| :--------- | :-------------------- |
| `query`    | `string`              |
| `options?` | `GetCountsAllOptions` |

#### Devuelve

`Promise`\<[`Get2TweetsCountsAllResponse`](/xdks/typescript/reference/interfaces/Schemas.Get2TweetsCountsAllResponse)>

#### Definido en

[posts/client.ts:3692](https://github.com/xdevplatform/xdk-typescript/blob/81aacb165e0802e188f608bdf462b60fc4e713a2/src/posts/client.ts#L3692)

***

### getById

▸ **getById**(`id`, `options`): `Promise`\<`Response`>

Obtener Post por ID
Recupera los detalles de un Post específico por su ID.

#### Parámetros

| Nombre    | Tipo                                                           | Descripción          |
| :-------- | :------------------------------------------------------------- | :------------------- |
| `id`      | `string`                                                       | Un único ID de Post. |
| `options` | `GetByIdOptions` & \{ `requestOptions`: \{ `raw`: `true`  }  } | -                    |

#### Devuelve

`Promise`\<`Response`>

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

#### Definido en

[posts/client.ts:3952](https://github.com/xdevplatform/xdk-typescript/blob/81aacb165e0802e188f608bdf462b60fc4e713a2/src/posts/client.ts#L3952)

▸ **getById**(`id`, `options?`): `Promise`\<[`Get2TweetsIdResponse`](/xdks/typescript/reference/interfaces/Schemas.Get2TweetsIdResponse)>

#### Parámetros

| Nombre     | Tipo             |
| :--------- | :--------------- |
| `id`       | `string`         |
| `options?` | `GetByIdOptions` |

#### Devuelve

`Promise`\<[`Get2TweetsIdResponse`](/xdks/typescript/reference/interfaces/Schemas.Get2TweetsIdResponse)>

#### Definido en

[posts/client.ts:3965](https://github.com/xdevplatform/xdk-typescript/blob/81aacb165e0802e188f608bdf462b60fc4e713a2/src/posts/client.ts#L3965)

***

### delete

▸ **delete**(`id`, `options`): `Promise`\<`Response`>

Eliminar Post
Elimina un Post específico por su ID, si es propiedad del usuario autenticado.

#### Parámetros

| Nombre                       | Tipo     | Descripción                      |
| :--------------------------- | :------- | :------------------------------- |
| `id`                         | `string` | El ID del Post que se eliminará. |
| `options`                    | `Object` | -                                |
| `options.requestOptions`     | `Object` | -                                |
| `options.requestOptions.raw` | `true`   | -                                |

#### Devuelve

`Promise`\<`Response`>

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

#### Definido en

[posts/client.ts:4202](https://github.com/xdevplatform/xdk-typescript/blob/81aacb165e0802e188f608bdf462b60fc4e713a2/src/posts/client.ts#L4202)

▸ **delete**(`id`): `Promise`\<[`TweetDeleteResponse`](/xdks/typescript/reference/interfaces/Schemas.TweetDeleteResponse)>

#### Parámetros

| Nombre | Tipo     |
| :----- | :------- |
| `id`   | `string` |

#### Devuelve

`Promise`\<[`TweetDeleteResponse`](/xdks/typescript/reference/interfaces/Schemas.TweetDeleteResponse)>

#### Definido en

[posts/client.ts:4215](https://github.com/xdevplatform/xdk-typescript/blob/81aacb165e0802e188f608bdf462b60fc4e713a2/src/posts/client.ts#L4215)

***

### getLikingUsers

▸ **getLikingUsers**(`id`, `options`): `Promise`\<`Response`>

Get Liking Users
Retrieves a list of Users who liked a specific Post by its ID.

#### Parámetros

| Nombre    | Tipo                                                                  | Descripción          |
| :-------- | :-------------------------------------------------------------------- | :------------------- |
| `id`      | `string`                                                              | Un único ID de Post. |
| `options` | `GetLikingUsersOptions` & \{ `requestOptions`: \{ `raw`: `true`  }  } | -                    |

#### Devuelve

`Promise`\<`Response`>

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

#### Definido en

[posts/client.ts:4306](https://github.com/xdevplatform/xdk-typescript/blob/81aacb165e0802e188f608bdf462b60fc4e713a2/src/posts/client.ts#L4306)

▸ **getLikingUsers**(`id`, `options?`): `Promise`\<[`Get2TweetsIdLikingUsersResponse`](/xdks/typescript/reference/interfaces/Schemas.Get2TweetsIdLikingUsersResponse)>

#### Parámetros

| Nombre     | Tipo                    |
| :--------- | :---------------------- |
| `id`       | `string`                |
| `options?` | `GetLikingUsersOptions` |

#### Devuelve

`Promise`\<[`Get2TweetsIdLikingUsersResponse`](/xdks/typescript/reference/interfaces/Schemas.Get2TweetsIdLikingUsersResponse)>

#### Definido en

[posts/client.ts:4319](https://github.com/xdevplatform/xdk-typescript/blob/81aacb165e0802e188f608bdf462b60fc4e713a2/src/posts/client.ts#L4319)

***

### getRepostedBy

▸ **getRepostedBy**(`id`, `options`): `Promise`\<`Response`>

Get Reposted by
Retrieves a list of Users who reposted a specific Post by its ID.

#### Parámetros

| Nombre    | Tipo                                                                 | Descripción          |
| :-------- | :------------------------------------------------------------------- | :------------------- |
| `id`      | `string`                                                             | Un único ID de Post. |
| `options` | `GetRepostedByOptions` & \{ `requestOptions`: \{ `raw`: `true`  }  } | -                    |

#### Devuelve

`Promise`\<`Response`>

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

#### Definido en

[posts/client.ts:4525](https://github.com/xdevplatform/xdk-typescript/blob/81aacb165e0802e188f608bdf462b60fc4e713a2/src/posts/client.ts#L4525)

▸ **getRepostedBy**(`id`, `options?`): `Promise`\<[`Get2TweetsIdRetweetedByResponse`](/xdks/typescript/reference/interfaces/Schemas.Get2TweetsIdRetweetedByResponse)>

#### Parámetros

| Nombre     | Tipo                   |
| :--------- | :--------------------- |
| `id`       | `string`               |
| `options?` | `GetRepostedByOptions` |

#### Devuelve

`Promise`\<[`Get2TweetsIdRetweetedByResponse`](/xdks/typescript/reference/interfaces/Schemas.Get2TweetsIdRetweetedByResponse)>

#### Definido en

[posts/client.ts:4538](https://github.com/xdevplatform/xdk-typescript/blob/81aacb165e0802e188f608bdf462b60fc4e713a2/src/posts/client.ts#L4538)
