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
API for Ring out.
Tags: ringout, rest api
Mar 31, 2018 at 10:07am   •   3 replies  •  0 likes
bill259

I can successfully copy the following into a URL and it works. (password changed)


https://service.ringcentral.com/ringout.asp?cmd=call&username=17274003201&; ext=7001&password=xxxxx&to=&from=17274106584&clid=7274003201&prompt=1


I was told I should use this format:


https://developer.ringcentral.com/api-docs/latest/index.html#!#RefRingOutCall.html


What would the complete string look like? I do not see in the https://developer.ringcentral.com/api-docs/latest/index.html#!#RefRingOutCall.html where a password is inserted?

3 Answers
answered on Apr 2, 2018 at 2:31am  
Curl is not a programming language but it is still possible to do it with curl.

The first step is to obtain the access token: 

curl -i -X POST "https://platform.devtest.ringcentral.com/restapi/oauth/token" \ -H "Accept: application/json" \ -H "Content-Type: application/x-www-form-urlencoded" \ -u "clientId:clientSecret" \ -d "username=username&password=password&extension=extension&grant_type=password"
With the token, invoke the RingOut API:
curl -X POST --header "Content-Type: application/json" \ --header "Accept: application/json" \ --header "Authorization: Bearer <access-token>" \ -d "{\"from\":{\"phoneNumber\":\"12345678\",\"forwardingNumberId\":\"\"},\"to\":{\"phoneNumber\":\"87654321\"},\"callerId\":{\"phoneNumber\":\"\"},\"playPrompt\":false,\"country\":{\"id\":\"\"}}" \ "https://platform.devtest.ringcentral.com/restapi/v1.0/account/~/extension/~/ring-out" 

 Ref:
https://github.com/ringcentral/ringcentral-faq/blob/70ae4be20d858179e28a630d38148f9fb44fe238/docs/oa...

https://developer.ringcentral.com/api-explorer/latest/index.html#/!/RingOut/makeRingOutCallNew

 1
answered on Apr 2, 2018 at 2:22am  
Curl

 0
answered on Apr 2, 2018 at 1:40am  
Hi Bill,

What you were told to use is RingCentral Restful API. It could not be done via a single url. Instead, you need to write some code. If you tell me your programming language I can show you sample code.

 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