Skip to content
Create a gist now

Instantly share code, notes, and snippets.

Basic urllib
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.