Skip to content

Instantly share code, notes, and snippets.

@bmcbride
Created March 13, 2014 20:40
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bmcbride/9536539 to your computer and use it in GitHub Desktop.
Save bmcbride/9536539 to your computer and use it in GitHub Desktop.
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