API Reference

Height

41 views 0

The Height resource is a height measurement from a specific point in time.

Overview

Property Type Description
code String The code of the weight 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 Number The value of the measurement in the unit specified
unit String The unit of the measurement value. See Unit System.
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/heights?access_token=demo
{
  "heights": [
    {
      "code": "0ee89a86-6420-4b41-b7b6-75ed4b187731",
      "value": 11,
      "unit": "cm",
      "source": "fitbit",
      "record_time": "2014-09-16 15:52:01+00",
      "user_code": "e231e984-2209-4a10-b634-2257b89c200f",
      "created_at": "2014-09-10 11:47:10+00"
    },
    {
      "code": "5cc53d82-3dbb-4299-8394-157e55441d16",
      "value": 100,
      "unit": "cm",
      "source": "fitbit",
      "record_time": "2014-09-16 15:52:01+00",
      "user_code": "e231e984-2209-4a10-b634-2257b89c200f",
      "created_at": "2014-09-10 13:32:57+00"
    },
    {
      "code": "4b384930-3389-4309-b7e9-1dce01a3c7c9",
      "value": 1100,
      "unit": "cm",
      "source": "runkeeper",
      "record_time": "2013-09-16 15:52:01+00",
      "user_code": "e231e984-2209-4a10-b634-2257b89c200f",
      "created_at": "2014-09-24 13:26:47+00",
      "updated_at": "2014-09-24 13:29:33+00"
     }
 ], 
 "total": 3
}
curl -X POST -H 'Content-Type: application/json' https://api.zivacare.com/api/v2/human/heights?access_token=demo -d '{ 
  "value": 180,
  "unit": "cm",
  "source": "fitbit",
  "record_time": "2014-09-16T15:52:01+0000"
}'
GET https://api.zivacare.com/api/v2/human/heights/daily/2014-09-16?access_token=demo
{
  "heights": [
    {
      "code": "0ee89a86-6420-4b41-b7b6-75ed4b187731",
      "value": 11,
      "unit": "cm",
      "source": "fitbit",
      "record_time": "2014-09-16 15:52:01+00",
      "user_code": "e231e984-2209-4a10-b634-2257b89c200f",
      "created_at": "2014-09-10 11:47:10+00"
    }
 ], 
 "total": 1
}
GET https://api.zivacare.com/api/v2/human/heights/period/2014-09-16/2014-10-16?access_token=demo
{
  "heights": [
    {
      "code": "0ee89a86-6420-4b41-b7b6-75ed4b187731",
      "value": 11,
      "unit": "cm",
      "source": "fitbit",
      "record_time": "2014-09-16 15:52:01+00",
      "user_code": "e231e984-2209-4a10-b634-2257b89c200f",
      "created_at": "2014-09-10 11:47:10+00"
    }
 ], 
 "total": 1
}

GET https://api.zivacare.com/api/v2/human/heights/5cc53d82-3dbb-4299-8394-157e55441d16?access_token=demo
{
  "height":
    {
      "code": "5cc53d82-3dbb-4299-8394-157e55441d16",
      "value": 100,
      "unit": "cm",
      "source": "fitbit",
      "record_time": "2014-09-16 15:52:01+00",
      "user_code": "e231e984-2209-4a10-b634-2257b89c200f",
      "created_at": "2014-09-10 13:32:57+00"
    }
}
curl -X PUT -H 'Content-Type: application/json' https://api.zivacare.com/api/v2/human/heights/5cc53d82-3dbb-4299-8394-157e55441d16?access_token=demo -d '{ 
  "value": 180,
  "unit": "cm",
  "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