command.rb 222 Bytes
Newer Older
1
module Mattermost
Kamil Trzcinski's avatar
Kamil Trzcinski committed
2 3
  class Command < Client
    def create(params)
4
      response = session_post("/api/v3/teams/#{params[:team_id]}/commands/create",
Kamil Trzcinski's avatar
Kamil Trzcinski committed
5
        body: params.to_json)
6

Kamil Trzcinski's avatar
Kamil Trzcinski committed
7
      response['token']
8 9 10
    end
  end
end