Last active
April 17, 2016 12:23
-
-
Save ObjectIsAdvantag/61654ac319de1d9aaeddf54fcfc66a74 to your computer and use it in GitHub Desktop.
Tropo outgoing GET query parameters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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