API Reference

Fall

48 views 0

Overview

Property Type Description
code String The id of the fall measurement
user_code String The global code of the user
record_time Datetime with Timezone The original date and time of the measurement
source String The source service for the measurement, where it was created
value Boolean This flag marks the fall
created_at Datetime with Timezone The time the measurement was created on the ZivaCare API server
updated_at Datetime with Timezone The time the measurement was updated on the ZivaCare API server

Example

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"
}'

Was this helpful?

By continuing to use the site, you agree to the use of cookies. More information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

Close