Skip to content

Instantly share code, notes, and snippets.

@caseysoftware
Created December 16, 2015 02:48
Show Gist options
  • Select an option

  • Save caseysoftware/920bac2927b62745525a to your computer and use it in GitHub Desktop.

Select an option

Save caseysoftware/920bac2927b62745525a to your computer and use it in GitHub Desktop.
Using curl to load a media file
curl --data "media_url=http://media.clarify.io/audio/books/dorothyandthewizardinoz_01_baum_64kb.mp3" \
--data "notify_url=http://example.org/sample-receiver" \
--data "name=Dorothy and the Wizard of Oz" https://api.clarify.io/v1/bundles \
--X POST --header "Authorization: Bearer myapikey" | jq '.'
# The jq portion is optional and just used to pretty print the resulting json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment