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

# WebhooksClient

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

## WebhooksClient

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

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

웹훅 작업을 위한 클라이언트

## 생성자

### `__init__`

#### 매개변수

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

### `create`

webhook 생성
새로운 webhook 구성을 생성합니다.
body: 요청 본문
:returns: 응답 데이터
:rtype: CreateResponse

#### 매개변수

<ParamField path="body.body" type="CreateRequest" />

### `create_stream_link`

스트림 링크 생성
Creates a link to deliver FilteredStream events to the given webhook.

#### 매개변수

<ParamField path="path.webhook_id" type="Any">
  The webhook ID to link to your FilteredStream ruleset.
</ParamField>

<ParamField path="path.tweet_fields" type="str or None" default="None">
  표시할 Tweet 필드의 쉼표로 구분된 목록입니다.
</ParamField>

<ParamField path="path.expansions" type="str or None" default="None">
  확장할 필드의 쉼표로 구분된 목록입니다.
</ParamField>

<ParamField path="path.media_fields" type="str or None" default="None">
  표시할 Media 필드의 쉼표로 구분된 목록입니다.
</ParamField>

<ParamField path="path.poll_fields" type="str or None" default="None">
  표시할 Poll 필드의 쉼표로 구분된 목록입니다.
</ParamField>

<ParamField path="path.user_fields" type="str or None" default="None">
  표시할 User 필드의 쉼표로 구분된 목록입니다.
</ParamField>

<ParamField path="path.place_fields" type="str or None" default="None">
  표시할 Place 필드의 쉼표로 구분된 목록입니다.
</ParamField>

#### 반환값

`CreateStreamLinkResponse` - 응답 데이터

### `create_webhook_replay_job`

webhook용 재생 작업 생성
Creates a replay job to retrieve events from up to the past 24 hours for all events delivered or attempted to be delivered to the webhook.
body: 요청 본문
:returns: 응답 데이터
:rtype: CreateWebhookReplayJobResponse

#### 매개변수

<ParamField path="body.body" type="CreateWebhookReplayJobRequest" />

### `delete`

webhook 삭제
Deletes an existing webhook configuration.

#### 매개변수

<ParamField path="path.webhook_id" type="Any">
  The ID of the webhook to delete.
</ParamField>

#### 반환값

`DeleteResponse` - 응답 데이터

### `delete_stream_link`

스트림 링크 삭제
Deletes a link from FilteredStream events to the given webhook.

#### 매개변수

<ParamField path="path.webhook_id" type="Any">
  The webhook ID to link to your FilteredStream ruleset.
</ParamField>

#### 반환값

`DeleteStreamLinkResponse` - 응답 데이터

### `get`

Get webhook
클라이언트 앱과 연결된 webhook 구성 목록을 가져옵니다.

#### 매개변수

<ParamField path="path.webhook_config_fields" type="List or None" default="None">
  A comma separated list of WebhookConfig fields to display.
</ParamField>

#### 반환값

`GetResponse` - 응답 데이터

### `get_stream_links`

Get stream links
필터링된 스트림 규칙 집합과 연결된 webhook 링크 목록을 가져옵니다.
:returns: 응답 데이터
:rtype: GetStreamLinksResponse

#### 반환값

`GetStreamLinksResponse`

### `validate`

Validate webhook
Triggers a CRC check for a given webhook.

#### 매개변수

<ParamField path="path.webhook_id" type="Any">
  The ID of the webhook to check.
</ParamField>

#### 반환값

`ValidateResponse` - 응답 데이터
