メインコンテンツへスキップ
このモジュールは、X API の投稿エンドポイント向けのリクエストおよびレスポンスのデータ構造に対する Pydantic モデルを提供します。すべてのモデルは OpenAPI 仕様から生成されており、型安全性とバリデーションを保証します。

class xdk.posts.models.CreateRequest

作成リクエスト用のモデル
model_config
ConfigDict
デフォルト: {'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}モデルの設定であり、[ConfigDict][pydantic.config.ConfigDict] に準拠した辞書である必要があります。

CreateResponse

クラス 継承元: BaseModel create メソッド用のレスポンスモデル

メソッド

class xdk.posts.models.CreateResponse

作成操作のレスポンスモデル

class xdk.posts.models.DeleteResponse

削除用のレスポンスモデル

class xdk.posts.models.GetAnalyticsResponse

get_analytics 用のレスポンスモデル

class xdk.posts.models.GetByIdResponse

get_by_id 用のレスポンスモデル

class xdk.posts.models.GetByIdsResponse

get_by_ids のレスポンス用モデル

class xdk.posts.models.GetCountsAllResponse

get_counts_all のレスポンス用モデル

class xdk.posts.models.GetCountsRecentResponse

get_counts_recent のレスポンス用モデル

class xdk.posts.models.GetInsights28hrResponse

get_insights28hr 用レスポンスモデル

class xdk.posts.models.GetInsightsHistoricalResponse

get_insights_historical のレスポンス用モデル

class xdk.posts.models.GetLikingUsersResponse

get_liking_users メソッドのレスポンスモデル

class xdk.posts.models.GetQuotedResponse

get_quoted のレスポンスモデル

class xdk.posts.models.GetRepostedByResponse

get_reposted_by メソッドのレスポンスモデル

class xdk.posts.models.GetRepostsResponse

get_reposts のレスポンスモデル

class xdk.posts.models.HideReplyResponse

hide_reply 用のレスポンスモデル

class xdk.posts.models.SearchAllResponse

search_all 用のレスポンスモデル

class xdk.posts.models.SearchRecentResponse

search_recent 用のレスポンスモデル