Skip to content

Instantly share code, notes, and snippets.

@keshavagrawal89
Last active December 16, 2015 13:09
Show Gist options
  • Select an option

  • Save keshavagrawal89/5439795 to your computer and use it in GitHub Desktop.

Select an option

Save keshavagrawal89/5439795 to your computer and use it in GitHub Desktop.
import plivo
import datetime
cloud = plivo.RestAPI(auth_id='MAOGM1MMQXODBJNZE1ZD', auth_token='ZjI1YWI0NzJlODM3NmJkNTMwNjJmZDE5MTgyMDU3')
print "Triggering now: %s" % datetime.datetime.now()
print "Response" + str(cloud.make_call({'from':'1234567890','to':'16503364782','answer_url':'https://dl.dropboxusercontent.com/u/54579287/conference.xml','callback_url':'http://some_url/', 'callback_method':'GET'}))
print "Triggered %s" % str(datetime.datetime.now())
print "------------"
print "Triggering now: %s" % datetime.datetime.now()
print "Response" + str(cloud.make_call({'from':'1234567890','to':'15305741446','answer_url':'https://dl.dropboxusercontent.com/u/54579287/conference.xml','callback_url' : 'http://some_url/','callback_method':'GET'}))
print "Triggered %s" % str(datetime.datetime.now())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment