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

# GeneralClient

일반 작업용 Client

이 Client는 X API의 일반 엔드포인트와 상호 작용하기 위한 메서드를 제공합니다. 인증, 요청 포맷 구성, 응답
파싱을 처리하여 일반 관련 모든 작업을 처리합니다.

<div id="constructors">
  ## 생성자
</div>

<div id="constructor">
  ### constructor
</div>

• **new GeneralClient**(`client`): [`GeneralClient`](/ko/xdks/typescript/reference/classes/GeneralClient)

새로운 GeneralClient 인스턴스를 생성합니다

<div id="parameters">
  #### 매개변수
</div>

| Name     | Type                                                     | Description         |
| :------- | :------------------------------------------------------- | :------------------ |
| `client` | [`Client`](/ko/xdks/typescript/reference/classes/Client) | 주 X API Client 인스턴스 |

<div id="returns">
  #### 반환값
</div>

[`GeneralClient`](/ko/xdks/typescript/reference/classes/GeneralClient)

<div id="defined-in">
  #### 정의된 위치
</div>

[general/client.ts:42](https://github.com/xdevplatform/xdk-typescript/blob/81aacb165e0802e188f608bdf462b60fc4e713a2/src/general/client.ts#L42)

<div id="methods">
  ## 메서드
</div>

<div id="getopenapispec">
  ### getOpenApiSpec
</div>

▸ **getOpenApiSpec**(`options`): `Promise`\<`Response`>

OpenAPI 명세를 가져옵니다.
전체 OpenAPI 명세를 JSON 형식으로 반환합니다. (참고: [https://github.com/OAI/OpenAPI-Specification/blob/master/README.md](https://github.com/OAI/OpenAPI-Specification/blob/master/README.md))

<div id="parameters">
  #### 매개변수
</div>

| 이름                           | type     |
| :--------------------------- | :------- |
| `options`                    | `Object` |
| `options.requestOptions`     | `Object` |
| `options.requestOptions.raw` | `true`   |

<div id="returns">
  #### 반환값
</div>

`Promise`\<`Response`>

API 응답으로 resolve되는 Promise이며, `requestOptions.raw`가 `true`인 경우 원시 `Response`

<div id="defined-in">
  #### 정의된 위치
</div>

[general/client.ts:83](https://github.com/xdevplatform/xdk-typescript/blob/81aacb165e0802e188f608bdf462b60fc4e713a2/src/general/client.ts#L83)

▸ **getOpenApiSpec**(): `Promise`\<[`GetOpenApiSpecResponse`](/ko/xdks/typescript/reference/modules/General#getopenapispecresponse)>

<div id="returns">
  #### 반환값
</div>

`Promise`\<[`GetOpenApiSpecResponse`](/ko/xdks/typescript/reference/modules/General#getopenapispecresponse)>

<div id="defined-in">
  #### 정의된 위치
</div>

[general/client.ts:92](https://github.com/xdevplatform/xdk-typescript/blob/81aacb165e0802e188f608bdf462b60fc4e713a2/src/general/client.ts#L92)
