Skip to content

Instantly share code, notes, and snippets.

@caseysoftware
Last active February 1, 2016 20:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save caseysoftware/4fa7c6352d082c32b664 to your computer and use it in GitHub Desktop.
Save caseysoftware/4fa7c6352d082c32b664 to your computer and use it in GitHub Desktop.
This snippet retrieves the keywords insight for a particular bundle and then iterates over the results. This is part of a post for the IBM Watson blog: http://blog.alchemyapi.com/decoding-the-debates-a-cognitive-approach
curl https://api.clarify.io/v1/bundles/abcde12345/insights/12345abcde \
--header "Authorization: Bearer myapikey" | jq '.track_data[0].keywords[].term'
# The jq command is an optional json parsing library available from https://stedolan.github.io/jq/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment