2016-12-13 18:52:41 +00:00
|
|
|
module Mattermost
|
2016-12-19 23:22:10 +00:00
|
|
|
class Team < Client
|
2017-02-02 14:04:02 +00:00
|
|
|
# Returns **all** teams for an admin
|
2016-12-19 23:22:10 +00:00
|
|
|
def all
|
2017-01-23 11:58:51 +00:00
|
|
|
session_get('/api/v3/teams/all')
|
2016-12-16 14:45:56 +00:00
|
|
|
end
|
2017-02-02 14:04:02 +00:00
|
|
|
|
|
|
|
def create(params)
|
|
|
|
session_post('/api/v3/teams/create', body: params.to_json)
|
|
|
|
end
|
2016-12-13 18:52:41 +00:00
|
|
|
end
|
|
|
|
end
|