import plivo, plivoxml auth_id = "MAMDCXZWQZMTJKZDI5N2" auth_token = "OTFlOTAxZDBkNzYzZDYyOGMyYzI2ZWIyMDhlZTk0" p = plivo.RestAPI(auth_id, auth_token) params = { 'to': '9254373246', # The phone numer to which the call will be placed 'from' : '1111111111', # The phone number to be used as the caller id # answer_url is the URL invoked by Plivo when the outbound call is answered # and contains instructions telling Plivo what to do with the call 'answer_url' : "https://s3.amazonaws.com/static.plivo.com/answer.xml", 'answer_method' : "GET", # The method used to call the answer_url # Example for asynchronous request # callback_url is the URL to which the API response is sent. #'callback_url' => "http://myvoiceapp.com/callback/", #'callback_method' => "GET" # The method used to notify the callback_url. } # Make an outbound call and print the response response = p.make_call(params) print str(response)
Run
Reset
Share
Import
Link
Embed
Language▼
English
中文
Python Fiddle
Python Cloud IDE
Follow @python_fiddle
Browser Version Not Supported
Due to Python Fiddle's reliance on advanced JavaScript techniques, older browsers might have problems running it correctly. Please download the latest version of your favourite browser.
Chrome 10+
Firefox 4+
Safari 5+
IE 10+
Let me try anyway!
url:
Go
Python Snippet
Stackoverflow Question