question

Tanmay Kumar avatar image
Tanmay Kumar asked ·

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 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.

1 Answer

· Write an Answer
Anirban Sen Chowdhary avatar image
Anirban Sen Chowdhary answered ·

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 Share
1 |1000 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.

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.