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

# AccountActivityClient

계정 활동 작업을 위한 Client

이 Client는 X API의 계정 활동 엔드포인트와 상호 작용하기 위한 메서드를 제공합니다. 계정 활동과 관련된 모든 작업에 대해 인증, 요청 포맷팅, 응답
파싱을 처리합니다.

<div id="constructors">
  ## 생성자
</div>

<div id="constructor">
  ### constructor
</div>

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

새로운 AccountActivityClient 인스턴스를 생성합니다

<div id="parameters">
  #### 매개변수
</div>

| Name     | Type                                                     | Description          |
| :------- | :------------------------------------------------------- | :------------------- |
| `client` | [`Client`](/ko/xdks/typescript/reference/classes/Client) | 주요 X API Client 인스턴스 |

<div id="returns">
  #### 반환값
</div>

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

#### 정의 위치

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

<div id="methods">
  ## 메서드
</div>

<div id="getsubscriptions">
  ### getSubscriptions
</div>

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

구독 조회
지정된 webhook에 대한 모든 활성 구독의 목록을 조회합니다.

<div id="parameters">
  #### 매개변수
</div>

| Name                         | Type     | Description               |
| :--------------------------- | :------- | :------------------------ |
| `webhookId`                  | `string` | 구독 정보를 가져올 webhook ID입니다. |
| `options`                    | `Object` | -                         |
| `options.requestOptions`     | `Object` | -                         |
| `options.requestOptions.raw` | `true`   | -                         |

<div id="returns">
  #### 반환값
</div>

`Promise`\<`Response`>

API 응답으로 resolve되는 Promise, 또는 `requestOptions.raw`가 true인 경우 원시 `Response`

#### 정의 위치

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

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

<div id="parameters">
  #### 매개변수
</div>

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

<div id="returns">
  #### 반환값
</div>

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

<div id="defined-in">
  #### 정의된 위치
</div>

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

***

<div id="deletesubscription">
  ### deleteSubscription
</div>

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

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

<div id="parameters">
  #### 매개변수
</div>

| Name                         | Type     | Description            |
| :--------------------------- | :------- | :--------------------- |
| `webhookId`                  | `string` | 구독 상태를 확인할 webhook ID. |
| `userId`                     | `string` | 구독을 해지할 사용자 ID.        |
| `options`                    | `Object` | -                      |
| `options.requestOptions`     | `Object` | -                      |
| `options.requestOptions.raw` | `true`   | -                      |

<div id="returns">
  #### 반환값
</div>

`Promise`\<`Response`>

API 응답으로 resolve되는 `Promise` 또는 `requestOptions.raw`가 `true`인 경우 원시 `Response`

<div id="defined-in">
  #### 정의된 위치
</div>

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

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

<div id="parameters">
  #### 매개변수
</div>

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

<div id="returns">
  #### 반환값
</div>

`Promise`\<[`SubscriptionsDeleteResponse`](/ko/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)

***

<div id="validatesubscription">
  ### validateSubscription
</div>

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

구독 검증\
지정된 webhook에 대해 사용자의 Account Activity 구독이 유효한지 확인합니다.

<div id="parameters">
  #### 매개변수
</div>

| Name                         | Type     | Description            |
| :--------------------------- | :------- | :--------------------- |
| `webhookId`                  | `string` | 구독을 검증할 webhook ID입니다. |
| `options`                    | `Object` | -                      |
| `options.requestOptions`     | `Object` | -                      |
| `options.requestOptions.raw` | `true`   | -                      |

<div id="returns">
  #### 반환값
</div>

`Promise`\<`Response`>

API 응답으로 resolve되는 Promise이며, requestOptions.raw가 true인 경우에는 원시 Response가 반환됩니다.

<div id="defined-in">
  #### 정의된 위치
</div>

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

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

<div id="parameters">
  #### 매개변수
</div>

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

<div id="returns">
  #### 반환값
</div>

`Promise`\<[`SubscriptionsGetResponse`](/ko/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)

***

<div id="createsubscription">
  ### createSubscription
</div>

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

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

<div id="parameters">
  #### 매개변수
</div>

| Name        | Type                                                                      | Description               |
| :---------- | :------------------------------------------------------------------------ | :------------------------ |
| `webhookId` | `string`                                                                  | 구독 상태를 확인할 webhook ID입니다. |
| `options`   | `CreateSubscriptionOptions` & \{ `requestOptions`: \{ `raw`: `true`  }  } | -                         |

<div id="returns">
  #### 반환값
</div>

`Promise`\<`Response`>

API 응답으로 resolve되는 `Promise` 또는 `requestOptions.raw`가 `true`인 경우 원시 `Response`

<div id="defined-in">
  #### 정의된 위치
</div>

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

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

<div id="parameters">
  #### 매개변수
</div>

| 이름          | 유형                          |
| :---------- | :-------------------------- |
| `webhookId` | `string`                    |
| `options?`  | `CreateSubscriptionOptions` |

<div id="returns">
  #### 반환값
</div>

`Promise`\<[`SubscriptionsCreateResponse`](/ko/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)

***

<div id="createreplayjob">
  ### createReplayJob
</div>

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

리플레이 작업 생성
지정된 webhook에 연결된 모든 구독에 대해 최근 최대 5일 동안의 활동을 가져오기 위한 리플레이 작업을 생성합니다.

<div id="parameters">
  #### 매개변수
</div>

| Name                         | Type     | Description                                                       |
| :--------------------------- | :------- | :---------------------------------------------------------------- |
| `webhookId`                  | `string` | webhook 구성의 고유 식별자입니다.                                            |
| `fromDate`                   | `string` | 이벤트가 제공되는 기준이 되는 가장 이른(시작) UTC 타임스탬프(포함)로, `yyyymmddhhmm` 형식입니다.  |
| `toDate`                     | `string` | 이벤트가 제공되는 기준이 되는 가장 늦은(종료) UTC 타임스탬프(미포함)로, `yyyymmddhhmm` 형식입니다. |
| `options`                    | `Object` | -                                                                 |
| `options.requestOptions`     | `Object` | -                                                                 |
| `options.requestOptions.raw` | `true`   | -                                                                 |

<div id="returns">
  #### 반환값
</div>

`Promise`\<`Response`>

API 응답으로 resolve되는 `Promise`이거나, `requestOptions.raw` 가 `true` 인 경우 원시 `Response`

#### 정의 위치

[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`](/ko/xdks/typescript/reference/interfaces/Schemas.ReplayJobCreateResponse)>

<div id="parameters">
  #### 매개변수
</div>

| 이름          | Type     |
| :---------- | :------- |
| `webhookId` | `string` |
| `fromDate`  | `string` |
| `toDate`    | `string` |

<div id="returns">
  #### 반환값
</div>

`Promise`\<[`ReplayJobCreateResponse`](/ko/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)

***

<div id="getsubscriptioncount">
  ### getSubscriptionCount
</div>

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

구독 수 조회\
현재 활성 상태인 Account Activity 구독의 개수를 조회합니다.

<div id="parameters">
  #### 매개변수
</div>

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

<div id="returns">
  #### 반환값
</div>

`Promise`\<`Response`>

API 응답으로 resolve되는 Promise이며, requestOptions.raw가 true인 경우 원시 Response가 그대로 반환됩니다.

<div id="defined-in">
  #### 정의된 위치
</div>

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

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

<div id="returns">
  #### 반환값
</div>

`Promise`\<[`SubscriptionsCountGetResponse`](/ko/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)
