Skip to content

Instantly share code, notes, and snippets.

@ObjectIsAdvantag
Last active April 17, 2016 12:23
Show Gist options
  • Save ObjectIsAdvantag/61654ac319de1d9aaeddf54fcfc66a74 to your computer and use it in GitHub Desktop.
Save ObjectIsAdvantag/61654ac319de1d9aaeddf54fcfc66a74 to your computer and use it in GitHub Desktop.
Tropo outgoing GET query parameters
import urllib2
log( "v20160417 - 0602" )
answer()
say( "Welcome to the python Yahoo weather reader" )
log( "outgoing call: before" )
urlRead = urllib2.urlopen( "http://requestb.in/zd4mlazd" + "?input=hello" )
log( "outgoing call: after" )
if urlRead :
log( "outgoing call: worked" )
say( "your answer has been posted" )
else :
log( "outgoing call: error" )
say( "I am sorry, Error occured while sending your answer" )
say( "Thats all. Goodbye!" )
hangup()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment