Created
June 9, 2015 15:13
-
-
Save joshmarlow/60f5475e9f031b2628be to your computer and use it in GitHub Desktop.
Ambition API - Curl/Bash Example
This file contains 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
#!/bin/env/sh | |
# | |
# upload_to_ambition.sh | |
# Simple script demonstrating how to upload data to the Ambition Data API. | |
export AUTH_TOKEN=<AUTH-TOKEN> | |
curl -vvv -H "Content-Type: application/json" -X POST "https://<SUBDOMAIN>.ambition.com/public-api/integration/v1/data/new/" -H "Authorization: Token $AUTH_TOKEN" -d "{\"depot\": \"custom_depot\", \"data\": \"Data from Curl!\"}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment