debian-mirror-gitlab/lib/mattermost/command.rb

11 lines
222 B
Ruby
Raw Normal View History

2017-08-17 22:00:37 +05:30
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