Bitium

Languages

User - Profile

retrieve the current user

This API request does not require any parameters.

 

Endpoint Copy

GET https://www.bitium.com/api/v2/me

Example Request

curl -H "Authorization: token {token}" \
-H "X-Device-Id: {unique_id}" \
https://www.bitium.com/api/v2/me 

Example Response

{  
  "id":16044,
  "name":"Duncan RIefelr",
  "first_name":"Duncan",
  "last_name":"Riefelr",
  "email":"dj@bitium.com",
  "default_organization_id":1,
  "current_organization_id":4282,
  "push":{  
    "channel":"user_16044",
    "subscribe_key":"sub-c-a4644da0-079e-11e4-ad16-02ee2ddab7fe"
  },
  "pusher":{  
    "channel":"user_16044",
    "key":"d6d0425054799c33a53f"
  }
}

retrieve the authenticated organization contact

Retrieves the profile information for the authenticated user within the organization.

Required Scopes

  • USER_READ

 

Endpoint Copy

GET https://www.bitium.com/api/v2/organizations/{organization_id}/me

Example Request

curl -H "Authorization: token {token}" \
-H "X-Device-Id: {unique_id}" \
https://www.bitium.com/api/v2/organizations/{organization_id}/me 

Example Response

{
  "status": "active", 
  "first_name": "Liora", 
  "last_name": "Simozar", 
  "name": "Liora Simozar", 
  "created_at": "2015-05-07T14:05:25.493-07:00", 
  "id": 31213, 
  "last_activity": "2015-08-19T15:45:50.173-07:00", 
  "last_activity_in_seconds": 5650.407218891, 
  "subscriptions_count": 16, 
  "average_password_score": {
    "grade": "F", 
    "score": 0.67
  }, 
  "groups": [
    {
      "id": 4636, 
      "name": "Managers"
    }
  ], 
  "email": "lns@bitium.com"
}