gitlab-org--gitlab-foss/lib/mattermost/command.rb
Z.J. van de Weg f187cc59d6 Small update to the Mattermost API
These changes make it possible to wrap multiple API requests in one
session.
2017-01-24 11:30:47 +01:00

10 lines
222 B
Ruby

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