Caseblocks Logo

User

User

Public Methods

get(userId)

Retrieves a user matching the id supplied

Caseblocks.User.get(5).then(function(user) {
  console.log(user.display_name))
}).catch(function(err){
  console.err(err)
})

getAll()

Retrieves the complete list of users for an account

Caseblocks.User.getAll().then(function(users) {
  for (var i=0; i <= users.length; i++) {
    console.log(users[i].display_name))        
  }
}).catch(function(err){
  console.err(err)
})