Stuck on fetching all queues via purecloudPlatformClient. The getQueuesQueues method only returns a page. I need to loop through nextPageUri until it’s null, but the PureCloudWebApiClient wrapper doesn’t seem to expose the raw link header easily. Here’s my attempt:
const api = client.QueuesApi;
let uri = '/api/v2/queues';
while (uri) {
const res = await api.getQueuesQueues({ uri });
// res.nextPageUri is undefined
}
- SDK version: 136.2.0
- Node 18
- Tried
getQueuesQueuesWithHttpInfobut headers are stripped.
Any way to get the next link from the response object?