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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
220 B
Ruby
Raw Normal View History

2018-12-13 13:39:08 +05:30
# frozen_string_literal: true
2017-08-17 22:00:37 +05:30
module Mattermost
class Command < Client
def create(params)
2018-11-08 19:23:39 +05:30
response = session_post('/api/v4/commands',
2017-08-17 22:00:37 +05:30
body: params.to_json)
response['token']
end
end
end