Created
December 16, 2013 02:07
-
-
Save GetOsmosis/7981397 to your computer and use it in GitHub Desktop.
Connecting to Osmosis Questionnaires with Python
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 | |
import simplejson | |
api_key = '<insert your API key here>' | |
url = 'https://www.getosmosis.com/api/Questionnaires/Draft?key=' + api_key | |
req = urllib2.Request(url, None, {'user-agent':'osmosis/api'}) | |
opener = urllib2.build_opener() | |
f = opener.open(req) | |
print simplejson.load(f) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment