Pagination
Property
Type
Description
Manually Fetch Pages
paginator = seam.create_paginator(seam.devices.list, {"limit": 20})
devices, pagination = paginator.first_page()
if pagination.has_next_page:
more_devices, _ = paginator.next_page(pagination.next_page_cursor)[
Device(
device_id='11111111-1111-1111-1111-444444444444',
...
),
...
]# Use GET or POST.
curl -X 'GET' \
'https://connect.getseam.com/devices/list' \
-H 'accept: application/json' \
-H "Authorization: Bearer ${SEAM_API_KEY}" \
-H 'Content-Type: application/json' \
-d '{
"limit": 20
}'
curl -X 'GET' \
'https://connect.getseam.com/devices/list' \
-H 'accept: application/json' \
-H "Authorization: Bearer ${SEAM_API_KEY}" \
-H 'Content-Type: application/json' \
-d "{
\"limit\": 20
\"page_cursor\": \"${next_page_cursor}\"
}"Resume Pagination
Iterate Over All Pages
Iterate Over All Resources
Return All Resources Across All Pages as an Array
Last updated
Was this helpful?

