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

# CommunitiesClient

कम्युनिटीज़ ऑपरेशंस के लिए Client

यह Client, X API के communities endpoints के साथ इंटरैक्ट करने के लिए methods प्रदान करता है।
यह सभी communities-संबंधित operations के लिए authentication, request formatting और response
parsing को संभालता है।

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

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

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

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

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

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

<div id="returns">
  #### रिटर्न
</div>

[`CommunitiesClient`](/hi/xdks/typescript/reference/classes/CommunitiesClient)

<div id="defined-in">
  #### यहाँ परिभाषित है
</div>

[communities/client.ts:102](https://github.com/xdevplatform/xdk-typescript/blob/81aacb165e0802e188f608bdf462b60fc4e713a2/src/communities/client.ts#L102)

<div id="methods">
  ## मेथड्स
</div>

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

▸ **search**(`query`, `options`): `Promise`\<`Response`>

Communities खोजें
निर्दिष्ट खोज क्वेरी से मेल खाने वाली Communities की सूची प्राप्त करता है।

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

| नाम       | type                                                          | विवरण                        |
| :-------- | :------------------------------------------------------------ | :--------------------------- |
| `query`   | `string`                                                      | कम्युनिटीज़ खोजने की क्वेरी। |
| `options` | `SearchOptions` & \{ `requestOptions`: \{ `raw`: `true`  }  } | -                            |

<div id="returns">
  #### रिटर्न
</div>

`Promise`\<`Response`>

API response पर resolve होने वाला Promise, या अगर requestOptions.raw true हो, तो raw Response

<div id="defined-in">
  #### यहाँ परिभाषित है
</div>

[communities/client.ts:147](https://github.com/xdevplatform/xdk-typescript/blob/81aacb165e0802e188f608bdf462b60fc4e713a2/src/communities/client.ts#L147)

▸ **search**(`query`, `options?`): `Promise`\<[`Get2CommunitiesSearchResponse`](/hi/xdks/typescript/reference/interfaces/Schemas.Get2CommunitiesSearchResponse)>

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

| नाम        | type            |
| :--------- | :-------------- |
| `query`    | `string`        |
| `options?` | `SearchOptions` |

<div id="returns">
  #### रिटर्न
</div>

`Promise`\<[`Get2CommunitiesSearchResponse`](/hi/xdks/typescript/reference/interfaces/Schemas.Get2CommunitiesSearchResponse)>

<div id="defined-in">
  #### यहाँ परिभाषित है
</div>

[communities/client.ts:160](https://github.com/xdevplatform/xdk-typescript/blob/81aacb165e0802e188f608bdf462b60fc4e713a2/src/communities/client.ts#L160)

***

<div id="getbyid">
  ### getById
</div>

▸ **getById**(`id`, `options`): `Promise`\<`Response`>

ID के आधार पर Community प्राप्त करें
किसी विशिष्ट Community का विवरण उसके ID के आधार पर प्राप्त करता है।

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

| नाम       | Type                                                           | विवरण            |
| :-------- | :------------------------------------------------------------- | :--------------- |
| `id`      | `string`                                                       | Community की id। |
| `options` | `GetByIdOptions` & \{ `requestOptions`: \{ `raw`: `true`  }  } | -                |

<div id="returns">
  #### रिटर्न
</div>

`Promise`\<`Response`>

वह Promise जो API response पर resolve होता है, या raw Response अगर requestOptions.raw true है

<div id="defined-in">
  #### यहाँ परिभाषित है
</div>

[communities/client.ts:352](https://github.com/xdevplatform/xdk-typescript/blob/81aacb165e0802e188f608bdf462b60fc4e713a2/src/communities/client.ts#L352)

▸ **getById**(`id`, `options?`): `Promise`\<[`Get2CommunitiesIdResponse`](/hi/xdks/typescript/reference/interfaces/Schemas.Get2CommunitiesIdResponse)>

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

| नाम        | प्रकार           |
| :--------- | :--------------- |
| `id`       | `string`         |
| `options?` | `GetByIdOptions` |

<div id="returns">
  #### रिटर्न
</div>

`Promise`\<[`Get2CommunitiesIdResponse`](/hi/xdks/typescript/reference/interfaces/Schemas.Get2CommunitiesIdResponse)>

<div id="defined-in">
  #### यहाँ परिभाषित है
</div>

[communities/client.ts:365](https://github.com/xdevplatform/xdk-typescript/blob/81aacb165e0802e188f608bdf462b60fc4e713a2/src/communities/client.ts#L365)
