하위 모듈
- xdk.account_activity.client module
- xdk.account_activity.models module
모듈 내용
이 모듈은 X API의 account activity 엔드포인트에 대한 액세스를 제공합니다. 모든 account activity-related 기능의 주요 진입점 역할을 합니다.class xdk.account_activity.AccountActivityClient
계정 활동 작업을 위한 클라이언트
매개변수
Client
__init__
매개변수
Client
create_replay_job
재생 작업 생성
특정 webhook과 연결된 모든 구독에 대해 최대 지난 5일 동안의 활동을 가져오는 재생 작업을 생성합니다.
매개변수
Any
webhook 구성의 고유 식별자입니다.
str
The oldest (starting) UTC timestamp (inclusive) from which events will be provided, in yyyymmddhhmm format.
str
The latest (ending) UTC timestamp (exclusive) up to which events will be provided, in yyyymmddhhmm format.
반환값
CreateReplayJobResponse - 응답 데이터
create_subscription
구독 생성
사용자와 지정된 webhook에 대한 Account Activity 구독을 생성합니다.
매개변수
Any
구독을 확인할 webhook ID입니다.
CreateSubscriptionRequest
요청 본문
delete_subscription
구독 삭제
지정된 webhook 및 사용자 ID에 대한 Account Activity 구독을 삭제합니다.
매개변수
Any
구독을 확인할 webhook ID입니다.
Any
구독을 해지할 사용자 ID입니다.
반환값
DeleteSubscriptionResponse - 응답 데이터
get_subscription_count
구독 수 조회
현재 활성화된 Account Activity 구독의 수를 가져옵니다.
:returns: 응답 데이터
:rtype: GetSubscriptionCountResponse
반환값
GetSubscriptionCountResponse
get_subscriptions
구독 목록 조회
지정된 webhook에 대한 모든 활성 구독의 목록을 가져옵니다.
매개변수
Any
구독을 가져올 webhook ID입니다.
반환값
GetSubscriptionsResponse - 응답 데이터
validate_subscription
구독 유효성 검사
지정된 webhook에 대한 사용자의 Account Activity 구독을 확인합니다.
매개변수
Any
구독을 확인할 webhook ID입니다.
반환값
ValidateSubscriptionResponse - 응답 데이터