Caseblocks Logo

Team

Team

Public Methods

get(teamId)

Retrieves a team matching the id supplied

Caseblocks.Team.get(5).then(function(team) {
  console.log(team.display_name))
}).catch(function(err){
  console.err(err)
})

Instance Methods

members()

Retrieves the users that are members in this team.

Caseblocks.Team.get(5).then(function(team) {
  team.members().then(function(users) {
    users.map(function(user) {
      console.log(user.display_name)
    })
  })
}).catch(function(err){
  console.err(err)
})