Our Python client library still has the pagination token bug. The raw API command works as intended, but the client lib does not. See below:
{
"next_page": "eyJ2IjoidjEiLCJwYWdlX3N0YXJ0Ijp7InNvcnRfYnkiOiJjcmVhdGVkLWF0LWFzY2VuZGluZyIsImxhc3Rfc2VlbiI6IjIwMjItMDEtMjdUMTk6NDM6MDIuMDU3WiJ9fQ==",
"items": [
{
"id": "ckv5prd3j000609mlnmwlpyw8",
"name": "Jess Frazelle",
"email": "[email protected]",
"image": "https://avatars.githubusercontent.com/u/1445228?v=4",
"phone": "",
"created_at": "2022-01-27T19:43:02.057Z",
"updated_at": "2022-01-30T02:46:07.284Z",
"github": "jessfraz",
"mailchimp_id": "f167b0eaf91fc1348ba18042504b7898",
"stripe_id": "cus_KTDi3DDw78NL4L",
"front_id": "crd_2cbq32k"
},
{
"id": "ckv5qow3c000608l03wos8i6c",
"email": "[email protected]",
"email_verified": "2022-03-11T01:57:51.293Z",
"image": "",
"phone": "",
"created_at": "2022-01-27T19:43:02.057Z",
"updated_at": "2022-03-11T01:57:51.425Z",
"mailchimp_id": "a54ba22c38f91ae92f3c3141a224ca31",
"stripe_id": "cus_KTTNd0YAsD59aR",
"front_id": "crd_2cbq1fw"
.
.
Continued
from kittycad.client import Client as Kittycad_Client
from kittycad.api.users.list_users_extended import *
import json
kittycad_client = Kittycad_Client(token="bb403021-6de8-4191-ae3f-c3015b4458a4")
response = sync(
sort_by = "created-at-ascending",
client=kittycad_client,
limit = 10)
print(response)