GET https://api.zivacare.com/api/v2/human/falls?access_token=demo
{
"falls": [
{
"code": "3b279631-a0d0-4c49-b273-8d9c555017bf",
"value": true,
"source": "fitbit",
"record_time": "2015-09-16 15:52:01+00",
"user_code": "e231e984-2209-4a10-b634-2257b89c200f",
"created_at": "2016-05-30 12:00:13+00"
},
{
"code": "5f9e4ac9-e5e8-4bf9-a956-d9529fcf92dc",
"value": true,
"source": "fitbit",
"record_time": "2014-10-16 15:52:01+00",
"user_code": "e231e984-2209-4a10-b634-2257b89c200f",
"created_at": "2016-05-30 11:59:46+00"
}
],
"total": 2
}
curl -X POST -H 'Content-Type: application/json' https://api.zivacare.com/api/v2/human/falls?access_token=demo
-d '{
"value": 1,
"source": "fitbit",
"record_time": "2014-09-16T15:52:01+0000"
}'
GET https://api.zivacare.com/api/v2/human/falls/daily/2015-09-16?access_token=demo
{
"falls": [
{
"code": "3b279631-a0d0-4c49-b273-8d9c555017bf",
"value": true,
"source": "fitbit",
"record_time": "2015-09-16 15:52:01+00",
"user_code": "e231e984-2209-4a10-b634-2257b89c200f",
"created_at": "2016-05-30 12:00:13+00"
},
{
"code": "5f9e4ac9-e5e8-4bf9-a956-d9529fcf92dc",
"value": true,
"source": "fitbit",
"record_time": "2014-10-16 15:52:01+00",
"user_code": "e231e984-2209-4a10-b634-2257b89c200f",
"created_at": "2016-05-30 11:59:46+00"
}
],
"total": 1
}
GET https://api.zivacare.com/api/v2/human/falls/period/2014-09-16/2015-09-16?access_token=demo
{
"falls": [
{
"code": "3b279631-a0d0-4c49-b273-8d9c555017bf",
"value": true,
"source": "fitbit",
"record_time": "2015-09-16 15:52:01+00",
"user_code": "e231e984-2209-4a10-b634-2257b89c200f",
"created_at": "2016-05-30 12:00:13+00"
},
{
"code": "5f9e4ac9-e5e8-4bf9-a956-d9529fcf92dc",
"value": true,
"source": "fitbit",
"record_time": "2014-10-16 15:52:01+00",
"user_code": "e231e984-2209-4a10-b634-2257b89c200f",
"created_at": "2016-05-30 11:59:46+00"
}
],
"total": 1
}
GET https://api.zivacare.com/api/v2/human/falls/3b279631-a0d0-4c49-b273-8d9c555017bf?access_token=demo
{
"fall":
{
"code": "3b279631-a0d0-4c49-b273-8d9c555017bf",
"value": true,
"source": "fitbit",
"record_time": "2015-09-16 15:52:01+00",
"user_code": "e231e984-2209-4a10-b634-2257b89c200f",
"created_at": "2016-05-30 12:00:13+00"
}
}
curl -X PUT -H 'Content-Type: application/json' https://api.zivacare.com/api/v2/human/falls/3b279631-a0d0-4c49-b273-8d9c555017bf?access_token=demo
-d '{
"value": 1,
"source": "fitbit",
"record_time": "2014-09-16T15:52:01+0000"
}'