public
Last active

Basic urllib

  • Download Gist
gistfile1.py
Python
1 2 3 4 5 6 7 8 9 10 11 12 13 14
from urllib2 import Request, urlopen
from urllib import urlencode, quote
import json
 
nodesTAG = "/nodes" # added onto baseURL
 
# place following function code in here
 
## main
if __name__ == "__main__":#
keydata = urlencode((app_key, user_access_key))
success, nodes = get_manufacturing_nodes(baseURL, keydata)
if success:
print success, nodes

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.