Created
December 16, 2015 02:48
-
-
Save caseysoftware/920bac2927b62745525a to your computer and use it in GitHub Desktop.
Using curl to load a media file
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 --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