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

11 lines
189 B
Ruby
Raw Normal View History

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