elopio@calchas:~/workspace/canonical/tanuki-agent/trunk$ ./scripts/api_example.py -X POST -d '{"image_unique_id": "elopiotest-dragonboard-20160412-1", "channel": "edge", "image_reference": {"udf-params": "core rolling --channel edge --kernel canonical-snapdragon-linux.canonical --os ubuntu-core.canonical --gadget canonical-dragon.canonical --developer-mode"}}' ~/.spi.ini https://spi.canonical.com/products/8b2afd31-ae62-449b-8487-21ef451fa80f/images
HTTP 201
{
"ids": [
{
"image_unique_id": "elopiotest-dragonboard-20160412-1",
"test_opportunity_id": "35a56b4d-4c03-4c8e-b876-ec2bd2570040"
}
]
}
elopio@calchas:~/workspace/canonical/tanuki-agent/trunk$ ./scripts/api_example.py ~/.spi.ini http://spi.canonical.com/products/8b2afd31-ae62-449b-8487-21ef451fa80f/tests/events?test_opportunity_id=35a56b4d-4c03-4c8e-b876-ec2bd2570040
HTTP 401
{
"message": "Not allowed",
"id": "unauthorized"
}