Skip to main content
Question

RC API call not listing only call queues

  • July 27, 2023
  • 2 replies
  • 116 views

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}')



2 replies

PhongVu
Community Manager
Forum|alt.badge.img
  • Community Manager
  • July 27, 2023

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?


  • Author
  • New Participant
  • July 28, 2023

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