Created
July 3, 2015 13:43
-
-
Save iaintshine/f18fa21e06bf84d46935 to your computer and use it in GitHub Desktop.
Fetch all leads from Base with name John and sort by external id custom fields and pretty print useful information
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
curl -X GET "https://api.getbase.com/v2/leads?first_name=john&sort_by=custom_fields:number:desc" -H "Authorization: Bearer $BASECRM_ACCESS_TOKEN" -g -v | python -mjson.tool | jq '[{name: .items[].data.first_name, custom_fields: .items[].data.custom_fields}]' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment