मुख्य सामग्री पर जाएं

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 से संबंधित सभी कार्रवाइयों के लिए प्रमाणीकरण, अनुरोध स्वरूपण और रिस्पॉन्स पार्सिंग को संभालता है।

कंस्ट्रक्टर

constructor

new UsageClient(client): UsageClient एक नया usage client instance बनाता है

पैरामीटर

नामTypeविवरण
clientClientमुख्य X API Client इंस्टेंस

रिटर्न

UsageClient

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

usage/client.ts:68

मेथड्स

get

get(options): Promise<Response> उपयोग आँकड़े प्राप्त करें निर्दिष्ट दिनों की संख्या के लिए पोस्ट्स के उपयोग संबंधी आँकड़े प्राप्त करता है।

पैरामीटर

नामtype
optionsGetOptions & { 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