summaryrefslogtreecommitdiff
path: root/lib/mattermost/command.rb
blob: 33e450d7f0a99dc8b390936a3f781578a7079da0 (plain)
1
2
3
4
5
6
7
8
9
10
module Mattermost
  class Command < Client
    def create(params)
      response = session_post("/api/v3/teams/#{params[:team_id]}/commands/create",
        body: params.to_json)

      response['token']
    end
  end
end