Skip to content

Instantly share code, notes, and snippets.

@iaintshine
Created July 3, 2015 13:43
Show Gist options
  • Save iaintshine/f18fa21e06bf84d46935 to your computer and use it in GitHub Desktop.
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
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