diff options
Diffstat (limited to 'lib/mattermost/command.rb')
| -rw-r--r-- | lib/mattermost/command.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/mattermost/command.rb b/lib/mattermost/command.rb new file mode 100644 index 00000000000..d1e4bb0eccf --- /dev/null +++ b/lib/mattermost/command.rb @@ -0,0 +1,10 @@ +module Mattermost + class Command < Client + def create(params) + response = json_post("/api/v3/teams/#{params[:team_id]}/commands/create", + body: params.to_json) + + response['token'] + end + end +end |
