question

Kt109 avatar image
Kt109 asked Kt109 commented

outbound call python

Any reference of code where I can make an outbound call from python code.

I want to try python sdk for that.

Any reference or any sample demo code will be helpful

Thanks in advance

getting started
1 |3000

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

1 Answer

Anirban avatar image
Anirban answered Kt109 commented

Can you check this below?

from ringcentral import SDK

sdk = SDK( "client_id", "client_secret", "server_url" )
platform = sdk.platform()
platform.login( "username", "extension", "password" )

resp = platform.post('/restapi/v1.0/account/~/extension/~/ring-out',
    {
      'from' : { 'phoneNumber': "13445554444" },
      'to'   : { 'phoneNumber': "13455553434" },
      'playPrompt' : True
    })
print "Call placed. Call status: " + resp.json().status.callStatus 

reference code : https://developers.ringcentral.com/guide/voice/ringout

1 comment
1 |3000

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

Kt109 avatar image Kt109 commented ·

Any full code can you provide?

-1 Like -1 ·

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