Make your product
work with UP.

User

Get basic information about the user

Returns the basic information of the user
URI Method Response Type Returns
/nudge/api/v.1.1/users/@me GET application/json User

Example:

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

Will return:

HTTP 200 OK
{
   “meta”:
   {
      “user_xid”: “6xl39CsoVp2KirfHwVq_Fx”,
      “message”: “OK”,
      “code”: 200,
      "time": 1386711801
   },
   “data”:
   {
      “xid”: “6xl39CsoVp2KirfHwVq_Fx”,
      “first”: “James”,
      “last”: “Franklin”,
      “image”: “user/image/i/1825738_photo.png”
      "weight": 90.6,
      "height": 1.8034
   }
}
	
Data Value Type Description
xid string Unique ID for this user (matches user_xid in Meta section).
first string First name of user.
last string Last name of user.
image URI Link to the profile image of this user (relative, add prefix https://jawbone.com)
weight float Weight of the user, in kilograms.
height float Height of the user, in meters.

Get list of friends

Returns the list of unique identifiers (XIDs) of the user's friends.
URI Method Response Type Returns
/nudge/api/v.1.1/users/@me/friends GET application/json Collection>XID

Example:

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

Will return:

HTTP 200 OK
{
   “meta”:
   {
      “user_xid”: “6xl39CsoVp2KirfHwVq_Fx”,
      “message”: “OK”,
      “code”: 200,
      "time": 1386711801
   },
   “data”:
   {
      "items": 
      [{
         "xid": "6xl39CsoVp20nd8oDSk7MX"
      },
      {
         "xid": "VkzWpOaqgeX"
      },
      {  
      ... more items ... 
      }],
      “size”: 113
   }
}
	
Data Value Type Description
xid string Unique ID for this user's friend. NOTE: this XID can only be used to retrieve friend's data if that friend has authorized your application.