X API SDK 向けのカーソルベースのページネーション用ユーティリティ。 このモジュールは、すべての API クライアントで洗練されたページネーションをサポートするための Cursor クラスを提供します。Cursor を使うことで、適切な型安全性を保ちながら、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.
.pages() と .items() の両メソッドを用いて、ページネーションされた結果を簡単にイテレートできます。
class xdk.paginator.Cursor
ResponseType]
パラメーター
__init__
パラメーター
各ページごとに呼び出す API メソッド(ページネーションをサポートしている必要があります)
items
パラメーター
返されるアイテム数の上限(制限なしの場合は None)
戻り値
IteratorAny
pages
パラメーター
返すページ数の上限(無制限の場合は None)
戻り値
IteratorResponseType
class xdk.paginator.PaginatableMethod
ResponseType]
__init__
xdk.paginator.cursor
パラメーター
ラップする API メソッド(ページネーションをサポートしている必要があります)