Skip to content

Commit a3d69e8

Browse files
committed
fix example 00
1 parent 49673f5 commit a3d69e8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

examples/00.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,11 @@
1717
# create an instance of the API class
1818
api_client = elabapi_python.ApiClient(configuration)
1919
# fix issue with Authorization header not being properly set by the generated lib
20-
api_client.set_default_header(header_name='Authorization', header_value='apiKey4Test')
20+
api_client.set_default_header(header_name='Authorization', header_value=my_api_key)
2121

2222
# create an instance of Items
2323
items = elabapi_python.ItemsApi(api_client)
24+
# display items with default settings
2425
print(items.read_items())
26+
# display 50 items with a category id of 8
27+
print(len(items.read_items(limit=50, cat=8)))

0 commit comments

Comments
 (0)