Skip to end of metadata
Go to start of metadata


Get a summary of a user's body measurements for a given day in the format requested using units in the unit system which corresponds to the Accept-Language header provided. This endpoint retrieves only latest entries for the specific date for weight, fat, bmi. If you would like to fetch all entries, use API-Get-Body-Weight and API-Get-Body-Fat endpoints.

Access Type: Read

Rate Limited: Yes

OAuth: oauth_token is optional, if omitted you should explicitly specify <user-id>.

Privacy: My Body (Friends or Anyone) privacy permission grants access to other user's resource.

Resource URL

GET /<api-version>/user/<user-id>/body/date/<date>.<response-format>

api-version

The API version. Currently 1.

user-id

User's encoded id or "-" (dash) to indicate user currently authenticated via the token credentials provided.

date

The date in the format yyyy-MM-dd.

response-format

The response format. Currently supported response formats are json and xml for responses in JSON and XML, respectively.

Examples

Authentication

Via token credentials. oauth_token authentication header parameter is optional.

Request Headers

Accept-Language

optional

The measurement unit system to use for response values.

Response

API Response in format requested: JSON or XML.

Response Body Format

Note: Text within <> is a descriptive place holder for a value or repeated elements.

JSON Response

 

Note: Text within [] is a descriptive place holder for a value or repeated elements.

XML Response

1. If there were no measurements for the specific day, we include zero values for those measurements. You can always fetch interpolated values for graphing via Get Time Series resource calls.
2. Please, not that as the values for <weight>, <fat> and <bmi> we include the latest entry of the specific day.

Examples

JSON Response
XML Response

 

  • No labels