Created
March 13, 2014 20:40
-
-
Save bmcbride/9536539 to your computer and use it in GitHub Desktop.
This file contains 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 sys | |
import json | |
from fulcrum import Fulcrum | |
api_key = 'your_api_key' | |
form_id = 'your_form_id' | |
if api_key == '' or api_key == 'your_api_key' or form_id == '' or form_id == 'your_form_id': | |
sys.exit('api_key and form_id are required!') | |
fulcrum = Fulcrum(key=api_key) | |
records = fulcrum.record.all(params={'form_id': form_id}) | |
recordCount = str(len(records['records'])) | |
file = open('fulcrum-records.json', 'w') | |
file.write(json.dumps(records, indent=2)) | |
file.close() | |
print 'done!' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment