X API SDK के लिए Cursor-आधारित पेजिनेशन यूटिलिटीज़। यह मॉड्यूल सभी API क्लाइंट में सहज पेजिनेशन सपोर्ट के लिए एक Cursor क्लास प्रदान करता है। Cursor, उचित type safety के साथ, .pages() और .items() दोनों मेथड का उपयोग करके पेजिनेट किए गए परिणामों पर आसानी से iterate करने में सक्षम बनाता है।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.
class xdk.paginator.Cursor
ResponseType]
पैरामीटर
__init__
पैरामीटर
हर पेज के लिए कॉल की जाने वाली API मेथड (इसे पेजिनेशन का समर्थन करना चाहिए)
items
पैरामीटर
लौटाए जाने वाले आइटमों की अधिकतम संख्या (असीमित के लिए None)
रिटर्न
IteratorAny
pages
पैरामीटर
लौटाए जाने वाले पृष्ठों की अधिकतम संख्या (
None का मतलब असीमित है)लौटाता है
IteratorResponseType
class xdk.paginator.PaginatableMethod
ResponseType]
__init__
xdk.paginator.cursor
पैरामीटर
रैप की जाने वाली API मेथड (पेजिनेशन का समर्थन करना चाहिए)