Skip to content

Instantly share code, notes, and snippets.

@quadrophobiac
Last active May 16, 2017 12:51
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 quadrophobiac/e05d0a9121f81d4b407a4efaab2f3026 to your computer and use it in GitHub Desktop.
Save quadrophobiac/e05d0a9121f81d4b407a4efaab2f3026 to your computer and use it in GitHub Desktop.
CURLs for the ODI's Bothan
## practical examples of how to use the Bothan API https://demo.bothan.io/documentation
#single values
curl -X POST -H "Content-Type: application/json" -d '{"time": "2017-03-12","value": 500}' "https://username:password@demo.bothan.io/metrics/replicate"
#multiple values
curl -X POST -H "Content-Type: application/json" -d '{"time": "2017-03-12","value": {"total": {"value1": 123,"value2": 213,"value4": 535}}}' "https://username:password@demo.bothan.io/metrics/replicate-multi-val"
#value with annual and ytd targets
curl -X POST -H "Content-Type: application/json" -d '{"time": "2017-03-12","value": {"actual": 1091000,"annual_target": 2862000,"ytd_target": 1368000}}' "https://username:password@demo.bothan.io/metrics/replcate-ytd-targets"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment