> ## 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.

# AccountActivityClient

> X API TypeScript SDK의 AccountActivityClient 클래스에 대한 레퍼런스. X API v2 account activity 엔드포인트에 대한 메서드, 매개변수 및 반환 타입.

계정 활동 작업을 위한 클라이언트

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

## 생성자

### constructor

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

새 account activity 클라이언트 인스턴스를 생성합니다

#### 매개변수

| 이름       | 타입                                                    | 설명                  |
| :------- | :---------------------------------------------------- | :------------------ |
| `client` | [`Client`](/xdks/typescript/reference/classes/Client) | 메인 X API 클라이언트 인스턴스 |

#### 반환값

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

#### 정의 위치

[account\_activity/client.ts:70](https://github.com/xdevplatform/xdk-typescript/blob/81aacb165e0802e188f608bdf462b60fc4e713a2/src/account_activity/client.ts#L70)

## 메서드

### getSubscriptions

▸ **getSubscriptions**(`webhookId`, `options`): `Promise`\<`Response`>

Get subscriptions
지정된 webhook에 대한 활성 구독 목록을 검색합니다.

#### 매개변수

| 이름                           | 타입       | 설명                     |
| :--------------------------- | :------- | :--------------------- |
| `webhookId`                  | `string` | 구독을 가져올 webhook ID입니다. |
| `options`                    | `Object` | -                      |
| `options.requestOptions`     | `Object` | -                      |
| `options.requestOptions.raw` | `true`   | -                      |

#### 반환값

`Promise`\<`Response`>

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

#### 정의 위치

[account\_activity/client.ts:115](https://github.com/xdevplatform/xdk-typescript/blob/81aacb165e0802e188f608bdf462b60fc4e713a2/src/account_activity/client.ts#L115)

▸ **getSubscriptions**(`webhookId`): `Promise`\<[`SubscriptionsListGetResponse`](/xdks/typescript/reference/interfaces/Schemas.SubscriptionsListGetResponse)>

#### 매개변수

| 이름          | 타입       |
| :---------- | :------- |
| `webhookId` | `string` |

#### 반환값

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

#### 정의 위치

[account\_activity/client.ts:128](https://github.com/xdevplatform/xdk-typescript/blob/81aacb165e0802e188f608bdf462b60fc4e713a2/src/account_activity/client.ts#L128)

***

### deleteSubscription

▸ **deleteSubscription**(`webhookId`, `userId`, `options`): `Promise`\<`Response`>

Delete subscription
지정된 webhook과 사용자 ID에 대한 Account Activity 구독을 삭제합니다.

#### 매개변수

| 이름                           | 타입       | 설명                     |
| :--------------------------- | :------- | :--------------------- |
| `webhookId`                  | `string` | 구독을 확인할 webhook ID입니다. |
| `userId`                     | `string` | 구독을 해제할 사용자 ID입니다.     |
| `options`                    | `Object` | -                      |
| `options.requestOptions`     | `Object` | -                      |
| `options.requestOptions.raw` | `true`   | -                      |

#### 반환값

`Promise`\<`Response`>

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

#### 정의 위치

[account\_activity/client.ts:217](https://github.com/xdevplatform/xdk-typescript/blob/81aacb165e0802e188f608bdf462b60fc4e713a2/src/account_activity/client.ts#L217)

▸ **deleteSubscription**(`webhookId`, `userId`): `Promise`\<[`SubscriptionsDeleteResponse`](/xdks/typescript/reference/interfaces/Schemas.SubscriptionsDeleteResponse)>

#### 매개변수

| 이름          | 타입       |
| :---------- | :------- |
| `webhookId` | `string` |
| `userId`    | `string` |

#### 반환값

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

#### 정의 위치

[account\_activity/client.ts:234](https://github.com/xdevplatform/xdk-typescript/blob/81aacb165e0802e188f608bdf462b60fc4e713a2/src/account_activity/client.ts#L234)

***

### validateSubscription

▸ **validateSubscription**(`webhookId`, `options`): `Promise`\<`Response`>

Validate subscription
지정된 webhook에 대한 사용자의 Account Activity 구독을 확인합니다.

#### 매개변수

| 이름                           | 타입       | 설명                     |
| :--------------------------- | :------- | :--------------------- |
| `webhookId`                  | `string` | 구독을 확인할 webhook ID입니다. |
| `options`                    | `Object` | -                      |
| `options.requestOptions`     | `Object` | -                      |
| `options.requestOptions.raw` | `true`   | -                      |

#### 반환값

`Promise`\<`Response`>

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

#### 정의 위치

[account\_activity/client.ts:331](https://github.com/xdevplatform/xdk-typescript/blob/81aacb165e0802e188f608bdf462b60fc4e713a2/src/account_activity/client.ts#L331)

▸ **validateSubscription**(`webhookId`): `Promise`\<[`SubscriptionsGetResponse`](/xdks/typescript/reference/interfaces/Schemas.SubscriptionsGetResponse)>

#### 매개변수

| 이름          | 타입       |
| :---------- | :------- |
| `webhookId` | `string` |

#### 반환값

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

#### 정의 위치

[account\_activity/client.ts:344](https://github.com/xdevplatform/xdk-typescript/blob/81aacb165e0802e188f608bdf462b60fc4e713a2/src/account_activity/client.ts#L344)

***

### createSubscription

▸ **createSubscription**(`webhookId`, `options`): `Promise`\<`Response`>

Create subscription
사용자와 지정된 webhook에 대한 Account Activity 구독을 생성합니다.

#### 매개변수

| 이름          | 타입                                                                        | 설명                     |
| :---------- | :------------------------------------------------------------------------ | :--------------------- |
| `webhookId` | `string`                                                                  | 구독을 확인할 webhook ID입니다. |
| `options`   | `CreateSubscriptionOptions` & \{ `requestOptions`: \{ `raw`: `true`  }  } | -                      |

#### 반환값

`Promise`\<`Response`>

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

#### 정의 위치

[account\_activity/client.ts:435](https://github.com/xdevplatform/xdk-typescript/blob/81aacb165e0802e188f608bdf462b60fc4e713a2/src/account_activity/client.ts#L435)

▸ **createSubscription**(`webhookId`, `options?`): `Promise`\<[`SubscriptionsCreateResponse`](/xdks/typescript/reference/interfaces/Schemas.SubscriptionsCreateResponse)>

#### 매개변수

| 이름          | 타입                          |
| :---------- | :-------------------------- |
| `webhookId` | `string`                    |
| `options?`  | `CreateSubscriptionOptions` |

#### 반환값

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

#### 정의 위치

[account\_activity/client.ts:448](https://github.com/xdevplatform/xdk-typescript/blob/81aacb165e0802e188f608bdf462b60fc4e713a2/src/account_activity/client.ts#L448)

***

### createReplayJob

▸ **createReplayJob**(`webhookId`, `fromDate`, `toDate`, `options`): `Promise`\<`Response`>

Create replay job
지정된 webhook과 연결된 모든 구독에 대해 최근 5일 이내의 활동을 검색하는 replay job을 생성합니다.

#### 매개변수

| 이름                           | 타입       | 설명                                                          |
| :--------------------------- | :------- | :---------------------------------------------------------- |
| `webhookId`                  | `string` | webhook 구성에 대한 고유 식별자입니다.                                   |
| `fromDate`                   | `string` | 이벤트가 제공되는 가장 오래된(시작) UTC 타임스탬프(포함)이며, `yyyymmddhhmm` 형식입니다. |
| `toDate`                     | `string` | 이벤트가 제공되는 가장 최근(종료) UTC 타임스탬프(제외)이며, `yyyymmddhhmm` 형식입니다.  |
| `options`                    | `Object` | -                                                           |
| `options.requestOptions`     | `Object` | -                                                           |
| `options.requestOptions.raw` | `true`   | -                                                           |

#### 반환값

`Promise`\<`Response`>

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

#### 정의 위치

[account\_activity/client.ts:564](https://github.com/xdevplatform/xdk-typescript/blob/81aacb165e0802e188f608bdf462b60fc4e713a2/src/account_activity/client.ts#L564)

▸ **createReplayJob**(`webhookId`, `fromDate`, `toDate`): `Promise`\<[`ReplayJobCreateResponse`](/xdks/typescript/reference/interfaces/Schemas.ReplayJobCreateResponse)>

#### 매개변수

| 이름          | 타입       |
| :---------- | :------- |
| `webhookId` | `string` |
| `fromDate`  | `string` |
| `toDate`    | `string` |

#### 반환값

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

#### 정의 위치

[account\_activity/client.ts:585](https://github.com/xdevplatform/xdk-typescript/blob/81aacb165e0802e188f608bdf462b60fc4e713a2/src/account_activity/client.ts#L585)

***

### getSubscriptionCount

▸ **getSubscriptionCount**(`options`): `Promise`\<`Response`>

Get subscription count
현재 활성화된 Account Activity 구독 수를 검색합니다.

#### 매개변수

| 이름                           | 타입       |
| :--------------------------- | :------- |
| `options`                    | `Object` |
| `options.requestOptions`     | `Object` |
| `options.requestOptions.raw` | `true`   |

#### 반환값

`Promise`\<`Response`>

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

#### 정의 위치

[account\_activity/client.ts:704](https://github.com/xdevplatform/xdk-typescript/blob/81aacb165e0802e188f608bdf462b60fc4e713a2/src/account_activity/client.ts#L704)

▸ **getSubscriptionCount**(): `Promise`\<[`SubscriptionsCountGetResponse`](/xdks/typescript/reference/interfaces/Schemas.SubscriptionsCountGetResponse)>

#### 반환값

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

#### 정의 위치

[account\_activity/client.ts:713](https://github.com/xdevplatform/xdk-typescript/blob/81aacb165e0802e188f608bdf462b60fc4e713a2/src/account_activity/client.ts#L713)
