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

# UsageClient

उपयोग संबंधी कार्रवाइयों के लिए Client

यह Client, X API के usage endpoints के साथ इंटरैक्ट करने के लिए विधियाँ प्रदान करता है। यह usage से संबंधित सभी कार्रवाइयों के लिए प्रमाणीकरण, अनुरोध स्वरूपण और रिस्पॉन्स पार्सिंग को संभालता है।

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

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

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

एक नया usage client instance बनाता है

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

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

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

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

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

[usage/client.ts:68](https://github.com/xdevplatform/xdk-typescript/blob/81aacb165e0802e188f608bdf462b60fc4e713a2/src/usage/client.ts#L68)

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

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

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

उपयोग आँकड़े प्राप्त करें
निर्दिष्ट दिनों की संख्या के लिए पोस्ट्स के उपयोग संबंधी आँकड़े प्राप्त करता है।

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

| नाम       | type                                                       |
| :-------- | :--------------------------------------------------------- |
| `options` | `GetOptions` & \{ `requestOptions`: \{ `raw`: `true`  }  } |

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

`Promise`\<`Response`>

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

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

[usage/client.ts:109](https://github.com/xdevplatform/xdk-typescript/blob/81aacb165e0802e188f608bdf462b60fc4e713a2/src/usage/client.ts#L109)

▸ **get**(`options?`): `Promise`\<[`Get2UsageTweetsResponse`](/hi/xdks/typescript/reference/interfaces/Schemas.Get2UsageTweetsResponse)>

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

| नाम        | Type         |
| :--------- | :----------- |
| `options?` | `GetOptions` |

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

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

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

[usage/client.ts:118](https://github.com/xdevplatform/xdk-typescript/blob/81aacb165e0802e188f608bdf462b60fc4e713a2/src/usage/client.ts#L118)
