gitlab-org--gitlab-foss/lib/mattermost/command.rb

11 lines
189 B
Ruby
Raw Normal View History

module Mattermost
2016-12-19 23:22:10 +00:00
class Command < Client
def create(params)
response = session_post('/api/v4/commands',
body: params.to_json)
2016-12-19 23:22:10 +00:00
response['token']
end
end
end