Skip to content

Commit 0a8a11a

Browse files
feat(api): update via SDK Studio (#11)
1 parent d61d43b commit 0a8a11a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ client = Zeroentropy()
9999
all_documents = []
100100
# Automatically fetches more pages as needed.
101101
for document in client.documents.get_info_list(
102-
collection_name="collection_name",
102+
collection_name="example_collection",
103103
):
104104
# Do something with document here
105105
all_documents.append(document)
@@ -119,7 +119,7 @@ async def main() -> None:
119119
all_documents = []
120120
# Iterate through items across all pages, issuing requests as needed.
121121
async for document in client.documents.get_info_list(
122-
collection_name="collection_name",
122+
collection_name="example_collection",
123123
):
124124
all_documents.append(document)
125125
print(all_documents)
@@ -132,7 +132,7 @@ Alternatively, you can use the `.has_next_page()`, `.next_page_info()`, or `.get
132132

133133
```python
134134
first_page = await client.documents.get_info_list(
135-
collection_name="collection_name",
135+
collection_name="example_collection",
136136
)
137137
if first_page.has_next_page():
138138
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:
146146

147147
```python
148148
first_page = await client.documents.get_info_list(
149-
collection_name="collection_name",
149+
collection_name="example_collection",
150150
)
151151

152152
print(f"next page cursor: {first_page.id_gt}") # => "next page cursor: ..."

0 commit comments

Comments
 (0)