> ## 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 के सामान्य endpoints के साथ इंटरैक्ट करने के लिए methods उपलब्ध कराता है। यह सभी सामान्य कार्यों के लिए authentication, request formatting, और रिस्पॉन्स parsing को संभालता है।

<div id="constructors">
  ## कंस्ट्रक्टर
</div>

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

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

एक नया GeneralClient इंस्टेंस बनाता है

<div id="parameters">
  #### पैरामीटर
</div>

| नाम      | प्रकार                                                   | विवरण                       |
| :------- | :------------------------------------------------------- | :-------------------------- |
| `client` | [`Client`](/hi/xdks/typescript/reference/classes/Client) | मुख्य X API Client इंस्टेंस |

#### रिटर्न

[`GeneralClient`](/hi/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 स्पेसिफ़िकेशन प्राप्त करता है। (देखें [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`   |

#### रिटर्न

`Promise`\<`Response`>

ऐसा Promise जो API रिस्पॉन्स पर रिज़ॉल्व होता है, या यदि requestOptions.raw true है, तो raw 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`](/hi/xdks/typescript/reference/modules/General#getopenapispecresponse)>

<div id="returns">
  #### रिटर्न करता है
</div>

`Promise`\<[`GetOpenApiSpecResponse`](/hi/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)
