Skip to main content

Using your code suggestion from your API reference on how to list call queues

https://developers.ringcentral.com/api-reference/Call-Queues/listCallQueues

I have written the below to try to return a list of Call Queues. Unfortunately, it lists Call Queues AND all extensions. Can you help me with this? I don't understand why its reporting on all extensions when it is supposed to be referencing the call-queues rest API

r = platform.get('/restapi/v1.0/account/~/call-queues')

jsonR = resp.json()

for record in jsonR.records:

print(f'|Extension: {record.extensionNumber}', end="")

print(f'| Name: {record.name}')



That API must return only call queue extensions. Is this your sandbox account? If so, can you provide the account main company number and the name of an extension which is not a call queue extension, that returned by this API?

If this is a production account, please provide the account name and and the name of an extension which is not a call queue extension, that returned by this API?


for anyone visiting this thread:

r = platform.get('/restapi/v1.0/account/~/call-queues')

jsonR = resp.json()

I wasn't calling the 'r' variable, I was calling the 'resp' variable from other code and thats why i was getting an incorrect printout


Reply