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

# paginator

X API SDK के लिए Cursor-आधारित पेजिनेशन यूटिलिटीज़।

यह मॉड्यूल सभी API क्लाइंट में सहज पेजिनेशन सपोर्ट के लिए एक Cursor क्लास प्रदान करता है। Cursor, उचित type safety के साथ, .pages() और .items() दोनों मेथड का उपयोग करके पेजिनेट किए गए परिणामों पर आसानी से iterate करने में सक्षम बनाता है।

<div id="class-xdkpaginatorcursor">
  ### `class xdk.paginator.Cursor`
</div>

\[`ResponseType`]

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

<ParamField path="path.method" type="PaginatableMethod" />

<div id="__init__">
  ### `__init__`
</div>

Cursor को इनिशियलाइज़ करें।

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

<ParamField path="path.method" type="PaginatableMethod">
  हर पेज के लिए कॉल की जाने वाली API मेथड (इसे पेजिनेशन का समर्थन करना चाहिए)
</ParamField>

<div id="items">
  ### `items`
</div>

पेजिनेटेड रिस्पॉन्स के अलग-अलग आइटम्स पर इटरेट करें।

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

<ParamField path="path.limit" type="int or None" default="None">
  लौटाए जाने वाले आइटमों की अधिकतम संख्या (असीमित के लिए None)
</ParamField>

#### रिटर्न

`IteratorAny`

<div id="pages">
  ### `pages`
</div>

रिस्पॉन्स के पेजों पर इटरेट करें।

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

<ParamField path="path.limit" type="int or None" default="None">
  लौटाए जाने वाले पृष्ठों की अधिकतम संख्या (`None` का मतलब असीमित है)
</ParamField>

<div id="returns">
  #### लौटाता है
</div>

`IteratorResponseType`

<div id="class-xdkpaginatorpaginatablemethod">
  ### `class xdk.paginator.PaginatableMethod`
</div>

\[`ResponseType`]

<div id="__init__">
  ### `__init__`
</div>

<div id="xdkpaginatorcursor">
  ### `xdk.paginator.cursor`
</div>

उचित type inference और validation के साथ एक cursor बनाएँ।
यह factory function type inference में मदद करता है, ताकि आपको
रिस्पॉन्स type के लिए सही type hints मिलें, और यह सत्यापित करता है कि method
static analysis और runtime, दोनों में पेजिनेशन का समर्थन करता है।

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

<ParamField path="path.method" type="PaginatableMethod">
  रैप की जाने वाली API मेथड (पेजिनेशन का समर्थन करना चाहिए)
</ParamField>
