cfg = purecloudplatformclientv2.Configuration()
cfg.access_token = "ya29..."
api = purecloudplatformclientv2.AnalyticsApi(cfg)
query = purecloudplatformclientv2.AnalyticsDetailsQuery()
query.interval_start = "2023-11-01T00:00:00.000Z"
query.interval_end = "2023-11-02T00:00:00.000Z"
res = api.post_analytics_details_queues_query(query)
s3_client.put_object(Bucket="cc-daily-exports", Key="nov/01_queues.json", Body=json.dumps(res.to_dict()))
Fires at 2 AM every night but the S3 bucket only catches a 20-row dump. It’s hitting that hardcoded page size limit again. The SDK response object buries the pagination cursor somewhere I can’t find. Just messing with the loop logic now.