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

      response['token']
    end
  end
end