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

# AccountActivityClient

> X API SDK의 account_activity.client Python 모듈에 대한 참조입니다. X API v2의 account activity 엔드포인트를 호출하기 위한 클라이언트 클래스와 메서드입니다.

## AccountActivityClient

<Badge color="blue">Class</Badge>

<Badge color="gray">기반 클래스: object</Badge>

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

## 생성자

### `__init__`

#### 매개변수

<ParamField path="path.client" type="Client" />

### `create_replay_job`

재생 작업 생성
특정 webhook과 연결된 모든 구독에 대해 최대 지난 5일 동안의 활동을 가져오는 재생 작업을 생성합니다.

#### 매개변수

<ParamField path="path.webhook_id" type="Any">
  webhook 구성의 고유 식별자입니다.
</ParamField>

<ParamField path="path.from_date" type="str">
  The oldest (starting) UTC timestamp (inclusive) from which events will be provided, in yyyymmddhhmm format.
</ParamField>

<ParamField path="path.to_date" type="str">
  The latest (ending) UTC timestamp (exclusive) up to which events will be provided, in yyyymmddhhmm format.
</ParamField>

#### 반환값

`CreateReplayJobResponse` - 응답 데이터

### `create_subscription`

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

#### 매개변수

<ParamField path="path.webhook_id" type="Any">
  구독을 확인할 webhook ID입니다.
</ParamField>

<ParamField path="body.body" type="CreateSubscriptionRequest">
  요청 본문
</ParamField>

### `delete_subscription`

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

#### 매개변수

<ParamField path="path.webhook_id" type="Any">
  구독을 확인할 webhook ID입니다.
</ParamField>

<ParamField path="path.user_id" type="Any">
  구독을 해지할 사용자 ID입니다.
</ParamField>

#### 반환값

`DeleteSubscriptionResponse` - 응답 데이터

### `get_subscription_count`

구독 수 조회
현재 활성화된 Account Activity 구독의 수를 가져옵니다.
:returns: 응답 데이터
:rtype: GetSubscriptionCountResponse

#### 반환값

`GetSubscriptionCountResponse`

### `get_subscriptions`

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

#### 매개변수

<ParamField path="path.webhook_id" type="Any">
  구독을 가져올 webhook ID입니다.
</ParamField>

#### 반환값

`GetSubscriptionsResponse` - 응답 데이터

### `validate_subscription`

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

#### 매개변수

<ParamField path="path.webhook_id" type="Any">
  구독을 확인할 webhook ID입니다.
</ParamField>

#### 반환값

`ValidateSubscriptionResponse` - 응답 데이터
