question

Tanmay Kumar avatar image
Tanmay Kumar asked Tanmay Kumar 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

callpython ring_central client
1 |1000

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 Sen Chowdhary avatar image
Anirban Sen Chowdhary answered Tanmay Kumar 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 |1000

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

Tanmay Kumar avatar image Tanmay Kumar commented ·

Any full code can you provide?

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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