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

# TypeScript XDK

X API (पूर्व में Twitter API) के लिए एक व्यापक TypeScript SDK, जिसमें स्मार्ट पेजिनेशन, कई प्रमाणीकरण methods, real-time स्ट्रीमिंग और पूर्ण type सुरक्षा जैसी उन्नत सुविधाएँ शामिल हैं।

<div id="key-features">
  ## मुख्य विशेषताएँ
</div>

* **🔐 प्रमाणीकरण**: User Context (OAuth1.0a, OAuth2.0) और ऐप-ओनली (बेयरर टोकन) प्रमाणीकरण
* **🔄 पेजिनेशन**: async iteration सपोर्ट के साथ स्वचालित पेजिनेशन
* **📡 स्ट्रीमिंग**: स्वचालित पुनःकनेक्शन के साथ इवेंट-ड्रिवन स्ट्रीमिंग
* **📚 type सुरक्षा**: सभी एंडपॉइंट्स और पैरामीटर के लिए पूर्ण TypeScript परिभाषाएँ
* **🎯 पूर्ण X API सपोर्ट**: यूज़र्स, पोस्ट्स, सूचियाँ, बुकमार्क्स, कम्युनिटीज़, और बहुत कुछ

<div id="quick-start">
  ## त्वरित शुरुआत
</div>

<CodeGroup dropdown>
  ```typescript quickstart.ts theme={null} theme={null}
  import { 
      Client, 
      type ClientConfig,
      type Users
  } from '@xdevplatform/xdk';

  const config: ClientConfig = { bearerToken: 'your-bearer-token' };

  const client: Client = new Client(config);

  async function main(): Promise<void> {
    const userResponse: Users.GetByUsernameResponse = await client.users.getByUsername('XDevelopers');
    const username: string = userResponse.data?.username!;
    console.log(username);
  }

  main();
  ```

  ```javascript quickstart.js theme={null} theme={null}
  import { Client } from '@xdevplatform/xdk';

  const client = new Client({ bearerToken: 'your-bearer-token' });

  const userResponse = await client.users.getByUsername('XDevelopers');
  const username = userResponse.data.username;
  console.log(username);
  ```
</CodeGroup>

<Info>
  JavaScript/TypeScript XDK का उपयोग करने वाले विस्तृत कोड उदाहरणों के लिए, हमारा [code samples GitHub repo](https://github.com/xdevplatform/samples/tree/main/javascript) देखें।
</Info>

<div id="whats-next">
  ## आगे क्या करें?
</div>

* [इंस्टॉलेशन गाइड](/hi/xdks/typescript/install) - अपने प्रोजेक्ट में SDK सेट अप करें
* [प्रमाणीकरण](/hi/xdks/typescript/authentication) - अलग-अलग auth तरीकों के बारे में जानें
* [पेजिनेशन](/hi/xdks/typescript/pagination) - डेटा पेजिनेशन के बारे में जानें
* [स्ट्रीमिंग](/hi/xdks/typescript/streaming) - रीयल-टाइम डेटा स्ट्रीमिंग के बारे में जानें
* [API संदर्भ](/hi/xdks/typescript/reference/Client) - पूरा API दस्तावेज़ पढ़ें
