@@ -99,7 +99,7 @@ client = Zeroentropy()
99
99
all_documents = []
100
100
# Automatically fetches more pages as needed.
101
101
for document in client.documents.get_info_list(
102
- collection_name = " collection_name " ,
102
+ collection_name = " example_collection " ,
103
103
):
104
104
# Do something with document here
105
105
all_documents.append(document)
@@ -119,7 +119,7 @@ async def main() -> None:
119
119
all_documents = []
120
120
# Iterate through items across all pages, issuing requests as needed.
121
121
async for document in client.documents.get_info_list(
122
- collection_name = " collection_name " ,
122
+ collection_name = " example_collection " ,
123
123
):
124
124
all_documents.append(document)
125
125
print (all_documents)
@@ -132,7 +132,7 @@ Alternatively, you can use the `.has_next_page()`, `.next_page_info()`, or `.get
132
132
133
133
``` python
134
134
first_page = await client.documents.get_info_list(
135
- collection_name = " collection_name " ,
135
+ collection_name = " example_collection " ,
136
136
)
137
137
if first_page.has_next_page():
138
138
print (f " will fetch next page using these details: { first_page.next_page_info()} " )
@@ -146,7 +146,7 @@ Or just work directly with the returned data:
146
146
147
147
``` python
148
148
first_page = await client.documents.get_info_list(
149
- collection_name = " collection_name " ,
149
+ collection_name = " example_collection " ,
150
150
)
151
151
152
152
print (f " next page cursor: { first_page.id_gt} " ) # => "next page cursor: ..."
0 commit comments