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

# SpacesClient

spaces ऑपरेशन के लिए Client

यह Client, X API के spaces एंडपॉइंट्स के साथ इंटरैक्ट करने के लिए मेथड उपलब्ध कराता है।
यह सभी spaces-संबंधित ऑपरेशन के लिए प्रमाणीकरण, अनुरोध फ़ॉर्मैटिंग, और रिस्पॉन्स
पार्सिंग को संभालता है।

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

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

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

एक नया SpacesClient instance बनाता है

#### पैरामीटर

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

#### रिटर्न

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

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

[spaces/client.ts:316](https://github.com/xdevplatform/xdk-typescript/blob/81aacb165e0802e188f608bdf462b60fc4e713a2/src/spaces/client.ts#L316)

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

<div id="getbyids">
  ### getByIds
</div>

▸ **getByIds**(`ids`, `options`): `Promise`\<`Response`>

IDs के आधार पर Spaces प्राप्त करें
उनकी IDs के आधार पर कई Spaces का विवरण प्राप्त करता है।

#### पैरामीटर

| नाम       | Type                                                            | विवरण                             |
| :-------- | :-------------------------------------------------------------- | :-------------------------------- |
| `ids`     | `any`\[]                                                        | लौटाई जाने वाली Space id की सूची। |
| `options` | `GetByIdsOptions` & \{ `requestOptions`: \{ `raw`: `true`  }  } | -                                 |

#### रिटर्न्स

`Promise`\<`Response`>

API रिस्पॉन्स पर रिज़ॉल्व होने वाला Promise, या यदि requestOptions.raw true है, तो raw Response

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

[spaces/client.ts:361](https://github.com/xdevplatform/xdk-typescript/blob/81aacb165e0802e188f608bdf462b60fc4e713a2/src/spaces/client.ts#L361)

▸ **getByIds**(`ids`, `options?`): `Promise`\<[`Get2SpacesResponse`](/hi/xdks/typescript/reference/interfaces/Schemas.Get2SpacesResponse)>

#### पैरामीटर

| नाम        | type              |
| :--------- | :---------------- |
| `ids`      | `any`\[]          |
| `options?` | `GetByIdsOptions` |

<div id="returns">
  #### क्या लौटाता है
</div>

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

#### यहाँ परिभाषित

[spaces/client.ts:374](https://github.com/xdevplatform/xdk-typescript/blob/81aacb165e0802e188f608bdf462b60fc4e713a2/src/spaces/client.ts#L374)

***

<div id="getposts">
  ### getPosts
</div>

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

Space पोस्ट्स प्राप्त करें
किसी विशिष्ट Space में उसकी id के आधार पर साझा किए गए पोस्ट्स की सूची प्राप्त करता है।

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

| नाम       | type                                                            | विवरण                              |
| :-------- | :-------------------------------------------------------------- | :--------------------------------- |
| `id`      | `string`                                                        | प्राप्त किए जाने वाले Space का ID। |
| `options` | `GetPostsOptions` & \{ `requestOptions`: \{ `raw`: `true`  }  } | -                                  |

#### रिटर्न

`Promise`\<`Response`>

API रिस्पॉन्स पर resolve होने वाला Promise, या अगर requestOptions.raw true है, तो raw Response

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

[spaces/client.ts:572](https://github.com/xdevplatform/xdk-typescript/blob/81aacb165e0802e188f608bdf462b60fc4e713a2/src/spaces/client.ts#L572)

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

#### पैरामीटर

| नाम        | type              |
| :--------- | :---------------- |
| `id`       | `string`          |
| `options?` | `GetPostsOptions` |

#### रिटर्न

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

#### यहाँ परिभाषित

[spaces/client.ts:585](https://github.com/xdevplatform/xdk-typescript/blob/81aacb165e0802e188f608bdf462b60fc4e713a2/src/spaces/client.ts#L585)

***

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

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

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

#### पैरामीटर

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

#### लौटाता है

`Promise`\<`Response`>

ऐसा Promise जो API रिस्पॉन्स पर resolve होता है, या यदि requestOptions.raw true है, तो raw Response पर

#### में परिभाषित

[spaces/client.ts:835](https://github.com/xdevplatform/xdk-typescript/blob/81aacb165e0802e188f608bdf462b60fc4e713a2/src/spaces/client.ts#L835)

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

#### पैरामीटर

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

#### रिटर्न करता है

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

#### यहाँ परिभाषित

[spaces/client.ts:848](https://github.com/xdevplatform/xdk-typescript/blob/81aacb165e0802e188f608bdf462b60fc4e713a2/src/spaces/client.ts#L848)

***

<div id="getbuyers">
  ### getBuyers
</div>

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

Space के टिकट खरीदार प्राप्त करें
उसकी ID के आधार पर किसी विशिष्ट Space के टिकट खरीदने वाले Users की सूची प्राप्त करता है।

#### पैरामीटर

| नाम       | type                                                             | विवरण                              |
| :-------- | :--------------------------------------------------------------- | :--------------------------------- |
| `id`      | `string`                                                         | प्राप्त किए जाने वाले Space का ID। |
| `options` | `GetBuyersOptions` & \{ `requestOptions`: \{ `raw`: `true`  }  } | -                                  |

#### रिटर्न्स

`Promise`\<`Response`>

ऐसा Promise जो API रिस्पॉन्स पर resolve होता है, या अगर requestOptions.raw true है, तो raw Response

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

[spaces/client.ts:1080](https://github.com/xdevplatform/xdk-typescript/blob/81aacb165e0802e188f608bdf462b60fc4e713a2/src/spaces/client.ts#L1080)

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

#### पैरामीटर

| नाम        | type               |
| :--------- | :----------------- |
| `id`       | `string`           |
| `options?` | `GetBuyersOptions` |

#### रिटर्न

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

#### इसमें परिभाषित

[spaces/client.ts:1093](https://github.com/xdevplatform/xdk-typescript/blob/81aacb165e0802e188f608bdf462b60fc4e713a2/src/spaces/client.ts#L1093)

***

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

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

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

#### पैरामीटर

| नाम       | Type                                                           | विवरण                                   |
| :-------- | :------------------------------------------------------------- | :-------------------------------------- |
| `id`      | `string`                                                       | पुनर्प्राप्त किए जाने वाले Space की ID। |
| `options` | `GetByIdOptions` & \{ `requestOptions`: \{ `raw`: `true`  }  } | -                                       |

#### रिटर्न्स

`Promise`\<`Response`>

API रिस्पॉन्स पर resolve होने वाला Promise, या यदि requestOptions.raw true हो, तो raw Response

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

[spaces/client.ts:1293](https://github.com/xdevplatform/xdk-typescript/blob/81aacb165e0802e188f608bdf462b60fc4e713a2/src/spaces/client.ts#L1293)

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

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

| नाम        | type             |
| :--------- | :--------------- |
| `id`       | `string`         |
| `options?` | `GetByIdOptions` |

#### रिटर्न

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

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

[spaces/client.ts:1306](https://github.com/xdevplatform/xdk-typescript/blob/81aacb165e0802e188f608bdf462b60fc4e713a2/src/spaces/client.ts#L1306)

***

<div id="getbycreatorids">
  ### getByCreatorIds
</div>

▸ **getByCreatorIds**(`userIds`, `options`): `Promise`\<`Response`>

क्रिएटर IDs के आधार पर Spaces प्राप्त करें
निर्दिष्ट User IDs द्वारा बनाए गए Spaces का विवरण प्राप्त करता है।

#### पैरामीटर

| नाम       | type                                                                   | विवरण                                |
| :-------- | :--------------------------------------------------------------------- | :----------------------------------- |
| `userIds` | `any`\[]                                                               | जिन Users में खोज करनी है, उनके IDs। |
| `options` | `GetByCreatorIdsOptions` & \{ `requestOptions`: \{ `raw`: `true`  }  } | -                                    |

#### रिटर्न करता है

`Promise`\<`Response`>

API रिस्पॉन्स पर resolve होने वाला Promise, या यदि requestOptions.raw true है, तो raw Response

#### में परिभाषित

[spaces/client.ts:1495](https://github.com/xdevplatform/xdk-typescript/blob/81aacb165e0802e188f608bdf462b60fc4e713a2/src/spaces/client.ts#L1495)

▸ **getByCreatorIds**(`userIds`, `options?`): `Promise`\<[`Get2SpacesByCreatorIdsResponse`](/hi/xdks/typescript/reference/interfaces/Schemas.Get2SpacesByCreatorIdsResponse)>

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

| नाम        | प्रकार                   |
| :--------- | :----------------------- |
| `userIds`  | `any`\[]                 |
| `options?` | `GetByCreatorIdsOptions` |

#### लौटाता है

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

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

[spaces/client.ts:1508](https://github.com/xdevplatform/xdk-typescript/blob/81aacb165e0802e188f608bdf462b60fc4e713a2/src/spaces/client.ts#L1508)
