debian-mirror-gitlab/lib/mattermost/command.rb
2018-12-13 13:39:08 +05:30

12 lines
220 B
Ruby

# frozen_string_literal: true
module Mattermost
class Command < Client
def create(params)
response = session_post('/api/v4/commands',
body: params.to_json)
response['token']
end
end
end