DEPRECATED

The v1 endpoints have been deprecated and will be removed after 1H 2014. Please use the current version instead.

Profile

Required scope: default (always available)

Get user profile, currently includes user id, first date from which there might be data for the user and users current time zone.

GET /user/profile

Response:

{
    "userId": 23138311640030064,
    "profile": {
        "firstDate": "20121211",
        "currentTimeZone": {
            "id": "Europe/Helsinki",
            "offset": 10800
        },
        "caloriesAvailable": true,
        "platform": "ios"
    }
}
  • userId: a unique identifier (64 bit unsigned) of the user
  • profile: a JSON object with the user profile information
    • firstDate: first date from which there might be data for the user, in yyyyMMdd format
    • currentTimeZone: a JSON object with info about users current time zone
      • id: time zone identifier for users current time zone
      • offset: offset to UTC in seconds
    • caloriesAvailable: whether calories are available for user
    • platform: users current platform, one of “ios” or “android”