Created
June 12, 2018 16:55
-
-
Save chrismullins/78ffbdbb21f65f733b915aa733ffeaf1 to your computer and use it in GitHub Desktop.
Get custom fields from close.io API
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
from closeio_api import Client | |
api = Client('your_api_key') | |
res = api.get('custom_fields/lead') | |
for field in res['data']: | |
print(field['name'] + ': '+ field['id']) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
res['data']
is a list of dictionaries for each custom field, so get the choices for a field like this: