Make your product
work with UP.

Time Zone

Get the time zone information

Returns an array of timezone information for the given time range. Will return date, timezone, and time that timezone went into effect for each timezone object.
URI HTTP Method Response Type Returns
/nudge/api/v.1.1/users/@me/timezone GET application/json Timezone
Parameter Type Description
start_time int Epoch timestamp. If this parameter is used, it returns all the timezone information since the "start_time" until the "end_time". If the "end_time" is not used, defautls to the current timestamp.
end_time int To be used with "start_time". Epoch timestamp that denotes the end of the time range queried for timezone.
date int Date in format YYYYMMDD. If this parameter is used, it returns all the timezone information in a given day.
timestamp int Epoch timestamp. If this parameter is used, the API will return the timezone correspondent to that point in time.

Example:

GET https://jawbone.com/nudge/api/v.1.1/users/@me/timezone HTTP/1.1
Host: jawbone.com
	

Will return:

HTTP 200 Ok
{
   "meta": 
   {
      "user_xid": "6xl39CsoVp2KirfHwVq_Fx",
      "message": "OK",
      "code": 200
      "time": 1382377526
   },
  “data”:
   {
      "items": 
      [{
         "date": 20131019,
         "tz": "American/Los Angeles",
         "time": 1382227198,
         }
      },
      {
      ... more items ....
      }],
      “size”: 4
   }
}
	
Data Value Type Description
date int Date in YYYYMMDD format, calculated based on 'time' and 'tz'.
tz string Time zone when this event was generated. Whenever possible, Olson format (e.g., "America/Los Angeles") will be returned, otherwise the GMT offset (e.g., "GMT+0800") will be returned.
time int Epoch timestamp when timezone was set.