Skip to content

Instantly share code, notes, and snippets.

@kitschpatrol
Created January 12, 2015 19:45
Show Gist options
  • Save kitschpatrol/ecea8855f1ad7157c4cb to your computer and use it in GitHub Desktop.
Save kitschpatrol/ecea8855f1ad7157c4cb to your computer and use it in GitHub Desktop.
#!/bin/bash
IP=192.168.0.146:5000
#IP=10.1.1.152
curl -L -H "Content-Type: application/json; charset=utf-8" --data '{
"sample_time" : "2015-01-12 19:09:19 +0000",
"social_communication" : 1,
"social_proximity" : 1,
"physical_activity" : 1,
"physical_tension" : 1,
"participant_uuid" : "23ACF72D-9A2C-44DB-B3FF-5557D8168A0B",
"mental_focus" : 1,
"mental_attitude" : 1,
"session_uuid" : "EA365754-2CCC-4939-B8AF-000EEEB47E50",
"uuid" : "54315CCE-94DA-425D-8042-BA4A37DB9A0B"
}' -v -L http://$IP/api/affectlabels/
echo "----------------------------"
curl -L http://$IP/api/affectlabels/54315CCE-94DA-425D-8042-BA4A37DB9A0B
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment