> ## 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">
  ### コンストラクター
</div>

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

新しい GeneralClient インスタンスを作成します

<div id="parameters">
  #### パラメーター
</div>

| Name     | Type                                                     | Description              |
| :------- | :------------------------------------------------------- | :----------------------- |
| `client` | [`Client`](/ja/xdks/typescript/reference/classes/Client) | X API のメイン Client インスタンス |

<div id="returns">
  #### 戻り値
</div>

[`GeneralClient`](/ja/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 仕様を取得します。
JSON 形式の完全な OpenAPI 仕様 (OpenAPI Specification) を取得します。 ([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 レスポンスに解決される Promise。requestOptions.raw が true の場合は生の Response

#### 定義元

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

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

<div id="returns">
  #### 戻り値
</div>

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

#### 定義元

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