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 के ट्रेंड्स एंडपॉइंट्स के साथ इंटरैक्ट करने के लिए मेथड उपलब्ध कराता है।
यह सभी ट्रेंड्स-संबंधित ऑपरेशनों के लिए प्रमाणीकरण, अनुरोध फ़ॉर्मैटिंग और रिस्पॉन्स
पार्सिंग को संभालता है।
zed](/xdks/typescript/reference/classes/TrendsClient#getpersonalized)
• new TrendsClient(client): TrendsClient
एक नया ट्रेंड्स Client इंस्टेंस बनाता है।
| नाम | type | विवरण |
|---|
client | Client | मुख्य X API Client इंस्टेंस |
TrendsClient
trends/client.ts:90
▸ getByWoeid(woeid, options): Promise<Response>
WOEID के आधार पर ट्रेंड्स प्राप्त करें
यह किसी विशिष्ट स्थान के लिए, जिसे उसके WOEID से पहचाना जाता है, ट्रेंडिंग विषयों को प्राप्त करता है।
| Name | type | Description |
|---|
woeid | number | उस स्थान का WOEID, जिसके लिए ट्रेंड देखना है। |
options | GetByWoeidOptions & { requestOptions: { raw: true } } | - |
Promise<Response>
Promise जो API रिस्पॉन्स में resolve होता है, या यदि requestOptions.raw true है तो raw Response
इसमें परिभाषित
trends/client.ts:135
▸ getByWoeid(woeid, options?): Promise<Get2TrendsByWoeidWoeidResponse>
| नाम | type |
|---|
woeid | number |
options? | GetByWoeidOptions |
Promise<Get2TrendsByWoeidWoeidResponse>
यहाँ परिभाषित
trends/client.ts:148
▸ getPersonalized(options): Promise<Response>
वैयक्तिकृत ट्रेंड्स प्राप्त करें
प्रमाणीकृत उपयोगकर्ता के लिए वैयक्तिकृत ट्रेंडिंग विषय प्राप्त करता है।
| नाम | type |
|---|
options | GetPersonalizedOptions & { requestOptions: { raw: true } } |
Promise<Response>
API रिस्पॉन्स पर resolve होने वाला Promise, या यदि requestOptions.raw true है, तो raw Response
इसमें परिभाषित
trends/client.ts:285
▸ getPersonalized(options?): Promise<Get2UsersPersonalizedTrendsResponse>
| नाम | type |
|---|
options? | GetPersonalizedOptions |
Promise<Get2UsersPersonalizedTrendsResponse>
trends/client.ts:294