Skip to content

Instantly share code, notes, and snippets.

@joshmarlow
Created June 9, 2015 15:13
Show Gist options
  • Save joshmarlow/60f5475e9f031b2628be to your computer and use it in GitHub Desktop.
Save joshmarlow/60f5475e9f031b2628be to your computer and use it in GitHub Desktop.
Ambition API - Curl/Bash Example
#!/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