> ## Documentation Index
> Fetch the complete documentation index at: https://docs.x.com/llms.txt
> Use this file to discover all available pages before exploring further.

# GeneralClient

> Reference for the general Python package in the X API SDK, grouping the client and Pydantic models for the general endpoints of the X API v2.

## 하위 모듈

* [xdk.general.client module](/xdks/python/reference/xdk.general.client)
  * [`GeneralClient`](/xdks/python/reference/xdk.general.client#xdk.general.client.GeneralClient)
    * [`GeneralClient.__init__()`](/xdks/python/reference/xdk.general.client#xdk.general.client.GeneralClient.__init__)
    * [`GeneralClient.get_open_api_spec()`](/xdks/python/reference/xdk.general.client#xdk.general.client.GeneralClient.get_open_api_spec)
* [xdk.general.models module](/xdks/python/reference/xdk.general.models)
  * [`GetOpenApiSpecResponse`](/xdks/python/reference/xdk.general.models#xdk.general.models.GetOpenApiSpecResponse)
    * [`GetOpenApiSpecResponse.model_config`](/xdks/python/reference/xdk.general.models#xdk.general.models.GetOpenApiSpecResponse.model_config)

## 모듈 내용

이 모듈은 X API의 general 엔드포인트에 대한 액세스를 제공합니다.
모든 general-related 기능의 주요 진입점 역할을 합니다.

### `class xdk.general.GeneralClient`

일반 작업을 위한 클라이언트

#### 매개변수

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

### `__init__`

#### 매개변수

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

### `get_open_api_spec`

Get OpenAPI Spec.
Retrieves the full OpenAPI Specification in JSON format. (See [https://github.com/OAI/OpenAPI-Specification/blob/master/README.md](https://github.com/OAI/OpenAPI-Specification/blob/master/README.md))
:returns: 응답 데이터
:rtype: GetOpenApiSpecResponse

#### 반환값

`GetOpenApiSpecResponse`
