Documentation Index
Fetch the complete documentation index at: https://generaltranslation.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
उपयोग संबंधी कार्रवाइयों के लिए Client
यह Client, X API के usage endpoints के साथ इंटरैक्ट करने के लिए विधियाँ प्रदान करता है। यह usage से संबंधित सभी कार्रवाइयों के लिए प्रमाणीकरण, अनुरोध स्वरूपण और रिस्पॉन्स पार्सिंग को संभालता है।
• new UsageClient(client): UsageClient
एक नया usage client instance बनाता है
| नाम | Type | विवरण |
|---|
client | Client | मुख्य X API Client इंस्टेंस |
UsageClient
यहाँ परिभाषित
usage/client.ts:68
▸ get(options): Promise<Response>
उपयोग आँकड़े प्राप्त करें
निर्दिष्ट दिनों की संख्या के लिए पोस्ट्स के उपयोग संबंधी आँकड़े प्राप्त करता है।
| नाम | type |
|---|
options | GetOptions & { requestOptions: { raw: true } } |
Promise<Response>
API रिस्पॉन्स पर resolve होने वाला Promise, या यदि requestOptions.raw true है, तो raw Response
usage/client.ts:109
▸ get(options?): Promise<Get2UsageTweetsResponse>
| नाम | Type |
|---|
options? | GetOptions |
Promise<Get2UsageTweetsResponse>
यहाँ परिभाषित
usage/client.ts:118