News & Announcements User Community Developer Community

Welcome to the RingCentral Community

Please note the community is currently under maintenance and is read-only.

Search
Make sure to review our Terms of Use and Community Guidelines.
  Please note the community is currently under maintenance and is read-only.
Home » Developers
RC API call not listing only call queues
Tags: rest api, call queues
Jul 27, 2023 at 1:45pm   •   2 replies  •  0 likes
Aleksandar Puseljic

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 Answers
answered on Jul 28, 2023 at 6:21am  

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


 0
answered on Jul 27, 2023 at 3:42pm  

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?


 0



A new Community is coming to RingCentral!

Posts are currently read-only as we transition into our new platform.

We thank you for your patience
during this downtime.

Try Workflow Builder

Did you know you can easily automate tasks like responding to SMS, team messages, and more? Plus it's included with RingCentral Video and RingEX plans!

Try RingCentral Workflow Builder

PRODUCTS
RingEX
Message
Video
Phone
OPEN ECOSYSTEM
Developer Platform
APIs
Integrated Apps
App Gallery
Developer support
Games and rewards

RESOURCES
Resource center
Blog
Product Releases
Accessibility
QUICK LINKS
App Download
RingCentral App login
Admin Portal Login
Contact Sales
© 1999-2024 RingCentral, Inc. All rights reserved. Legal Privacy Notice Site Map Contact Us