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

<div id="submodules">
  ## サブモジュール
</div>

* [xdk.account\_activity.client モジュール](/ja/xdks/python/reference/xdk.account_activity.client)
  * [`AccountActivityClient`](/ja/xdks/python/reference/xdk.account_activity.client#xdk.account_activity.client.AccountActivityClient)
    * [`AccountActivityClient.__init__()`](/ja/xdks/python/reference/xdk.account_activity.client#xdk.account_activity.client.AccountActivityClient.__init__)
    * [`AccountActivityClient.create_replay_job()`](/ja/xdks/python/reference/xdk.account_activity.client#xdk.account_activity.client.AccountActivityClient.create_replay_job)
    * [`AccountActivityClient.create_subscription()`](/ja/xdks/python/reference/xdk.account_activity.client#xdk.account_activity.client.AccountActivityClient.create_subscription)
    * [`AccountActivityClient.delete_subscription()`](/ja/xdks/python/reference/xdk.account_activity.client#xdk.account_activity.client.AccountActivityClient.delete_subscription)
    * [`AccountActivityClient.get_subscription_count()`](/ja/xdks/python/reference/xdk.account_activity.client#xdk.account_activity.client.AccountActivityClient.get_subscription_count)
    * [`AccountActivityClient.get_subscriptions()`](/ja/xdks/python/reference/xdk.account_activity.client#xdk.account_activity.client.AccountActivityClient.get_subscriptions)
    * [`AccountActivityClient.validate_subscription()`](/ja/xdks/python/reference/xdk.account_activity.client#xdk.account_activity.client.AccountActivityClient.validate_subscription)
* [xdk.account\_activity.models モジュール](/ja/xdks/python/reference/xdk.account_activity.models)
  * [`CreateReplayJobResponse`](/ja/xdks/python/reference/xdk.account_activity.models#xdk.account_activity.models.CreateReplayJobResponse)
    * [`CreateReplayJobResponse.model_config`](/ja/xdks/python/reference/xdk.account_activity.models#xdk.account_activity.models.CreateReplayJobResponse.model_config)
  * [`CreateSubscriptionRequest`](/ja/xdks/python/reference/xdk.account_activity.models#xdk.account_activity.models.CreateSubscriptionRequest)
    * [`CreateSubscriptionRequest.model_config`](/ja/xdks/python/reference/xdk.account_activity.models#xdk.account_activity.models.CreateSubscriptionRequest.model_config)
  * [`CreateSubscriptionResponse`](/ja/xdks/python/reference/xdk.account_activity.models#xdk.account_activity.models.CreateSubscriptionResponse)
    * [`CreateSubscriptionResponse.model_config`](/ja/xdks/python/reference/xdk.account_activity.models#xdk.account_activity.models.CreateSubscriptionResponse.model_config)
  * [`DeleteSubscriptionResponse`](/ja/xdks/python/reference/xdk.account_activity.models#xdk.account_activity.models.DeleteSubscriptionResponse)
    * [`DeleteSubscriptionResponse.model_config`](/ja/xdks/python/reference/xdk.account_activity.models#xdk.account_activity.models.DeleteSubscriptionResponse.model_config)
  * [`GetSubscriptionCountResponse`](/ja/xdks/python/reference/xdk.account_activity.models#xdk.account_activity.models.GetSubscriptionCountResponse)
    * [`GetSubscriptionCountResponse.model_config`](/ja/xdks/python/reference/xdk.account_activity.models#xdk.account_activity.models.GetSubscriptionCountResponse.model_config)
  * [`GetSubscriptionsResponse`](/ja/xdks/python/reference/xdk.account_activity.models#xdk.account_activity.models.GetSubscriptionsResponse)
    * [`GetSubscriptionsResponse.model_config`](/ja/xdks/python/reference/xdk.account_activity.models#xdk.account_activity.models.GetSubscriptionsResponse.model_config)
  * [`ValidateSubscriptionResponse`](/ja/xdks/python/reference/xdk.account_activity.models#xdk.account_activity.models.ValidateSubscriptionResponse)
    * [`ValidateSubscriptionResponse.model_config`](/ja/xdks/python/reference/xdk.account_activity.models#xdk.account_activity.models.ValidateSubscriptionResponse.model_config)

<div id="module-contents">
  ## モジュール内容
</div>

このモジュールは、X API のアカウントアクティビティ系エンドポイントへのアクセスを提供し、アカウントアクティビティ関連機能へのメインエントリポイントとして機能します。

<div id="class-xdkaccount_activityaccountactivityclient">
  ### `class xdk.account_activity.AccountActivityClient`
</div>

アカウントアクティビティ用の Client

#### パラメータ

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

<div id="__init__">
  ### `__init__`
</div>

#### パラメータ

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

<div id="create_replay_job">
  ### `create_replay_job`
</div>

リプレイジョブの作成
指定した webhook に紐づくすべてのサブスクリプションについて、最大過去 5 日分のアクティビティを取得するリプレイジョブを作成します。

<div id="parameters">
  #### パラメーター
</div>

<ParamField path="path.webhook_id" type="Any">
  Webhook 設定の一意の識別子。
</ParamField>

<ParamField path="path.from_date" type="str">
  イベントが提供される最も古い (開始) UTC タイムスタンプ (含む) 。形式は yyyymmddhhmm。
</ParamField>

<ParamField path="path.to_date" type="str">
  イベントが提供される最新 (終了) UTC タイムスタンプ (含まない) 。形式は yyyymmddhhmm。
</ParamField>

<div id="returns">
  #### 戻り値
</div>

`CreateReplayJobResponse` - レスポンスデータ

<div id="create_subscription">
  ### `create_subscription`
</div>

サブスクリプションを作成
対象ユーザーと指定された Webhook に対する Account Activity サブスクリプションを作成します。

<div id="parameters">
  #### パラメーター
</div>

<ParamField path="path.webhook_id" type="Any">
  サブスクリプションを確認する対象の webhook ID。
</ParamField>

<ParamField path="body.body" type="CreateSubscriptionRequest">
  リクエストボディ
</ParamField>

<div id="delete_subscription">
  ### `delete_subscription`
</div>

サブスクリプションを削除
指定された webhook とユーザー id に対する Account Activity のサブスクリプションを削除します。

<div id="parameters">
  #### パラメーター
</div>

<ParamField path="path.webhook_id" type="Any">
  サブスクリプション状態を確認する対象の webhook ID。
</ParamField>

<ParamField path="path.user_id" type="Any">
  サブスクリプションを解除するユーザーの ID。
</ParamField>

<div id="returns">
  #### 戻り値
</div>

`DeleteSubscriptionResponse` - レスポンスデータ

<div id="get_subscription_count">
  ### `get_subscription_count`
</div>

サブスクリプション数を取得します\
現在アクティブな Account Activity サブスクリプションの数を取得します。
:returns: レスポンスデータ
:rtype: GetSubscriptionCountResponse

<div id="returns">
  #### 戻り値
</div>

`GetSubscriptionCountResponse`

<div id="get_subscriptions">
  ### `get_subscriptions`
</div>

サブスクリプションの取得
指定した webhook 用の、アクティブなすべてのサブスクリプションのリストを取得します。

#### パラメータ

<ParamField path="path.webhook_id" type="Any">
  サブスクリプションを取得する webhook の ID です。
</ParamField>

<div id="returns">
  #### 戻り値
</div>

`GetSubscriptionsResponse` - レスポンスデータ

<div id="validate_subscription">
  ### `validate_subscription`
</div>

サブスクリプションの検証
指定された webhook に対して、ユーザーの Account Activity サブスクリプションを検証します。

<div id="parameters">
  #### パラメーター
</div>

<ParamField path="path.webhook_id" type="Any">
  サブスクリプションを検証する対象の webhook の webhook ID です。
</ParamField>

<div id="returns">
  #### 戻り値
</div>

`ValidateSubscriptionResponse` - レスポンスデータ
