Skip to content

Basic Commands in Bamboo

pld edited this page Apr 23, 2012 · 1 revision

Store a URL in Bamboo:

curl -X POST -d "url=http://formhub.org/mberg/forms/good_eats/data.csv" http://localhost:8080/collections

Retrieve data

by ID:

curl http://localhost:8080/collections?id=8a3d74711475d8a51c84484fe73f24bd151242ea

by ID and query:

curl http://localhost:8080/collections?id=8a3d74711475d8a51c84484fe73f24bd151242ea&query='{"food_type":"lunch"}'

Calculate statistics

by ID:

curl http://localhost:8080/calculate?id=8a3d74711475d8a51c84484fe73f24bd151242ea

by ID and query:

curl http://localhost:8080/calculate?id=8a3d74711475d8a51c84484fe73f24bd151242ea&query='{"food_type":"lunch"}'

with a grouping:

curl http://localhost:8080/calculate?id=8a3d74711475d8a51c84484fe73f24bd151242ea&group=food_type