import PureCloudPlatformClientV2
from PureCloudPlatformClientV2.rest import ApiException
api_instance = PureCloudPlatformClientV2.OAuthClientsApi(PureCloudPlatformClientV2.ApiClient())
try:
# Trying to get a full list (which is apparently a chore)
api_response = api_instance.get_oauth_clients(page_size=100, page_number=1)
print(api_response)
except ApiException as e:
print(f"Error: {e}")
The SDK is returning a 400 Bad Request when trying to iterate past the first page (shocking design choice). The response body says Invalid page number. Logic says it should just work (it’s a basic GET), but the pagination in this library is a mess. Tried hitting /api/v2/oauth/clients directly with different page numbers. Still nothing.