question

bill259 avatar image
bill259 asked Tyler Liu answered

API for Ring out.

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?

rest apiringout
1 |1500 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Tyler Liu avatar image
Tyler Liu answered
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.
1 |1500 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

bill-fox9520 avatar image
bill-fox9520 answered
Curl
1 |1500 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Tyler Liu avatar image
Tyler Liu answered
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 |1500 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Developer sandbox tools

Using the RingCentral Phone for Desktop, you can dial or receive test calls, send and receive test SMS or Fax messages in your sandbox environment.

Download RingCentral Phone for Desktop:

Tip: switch to the "sandbox mode" before logging in the app:

  • On MacOS: press "fn + command + f2" keys
  • On Windows: press "Ctrl + F2" keys