module Mattermost::Endpoint::OAuth
Public Instance Methods
delete_oauth_app(app_id)
click to toggle source
# File lib/mattermost/endpoint/oauth.rb, line 23 def delete_oauth_app(app_id) delete("/oauth/apps/#{app_id}") end
get_oauth_app(app_id)
click to toggle source
# File lib/mattermost/endpoint/oauth.rb, line 15 def get_oauth_app(app_id) get("/oauth/apps/#{app_id}") end
get_oauth_app_info(app_id)
click to toggle source
# File lib/mattermost/endpoint/oauth.rb, line 31 def get_oauth_app_info(app_id) get("/oauth/apps/#{app_id}/info") end
get_oauth_apps(max = 60)
click to toggle source
# File lib/mattermost/endpoint/oauth.rb, line 11 def get_oauth_apps(max = 60) get("/oauth/apps?per_page=#{max}") end
regenerate_oauth_app_secret(app_id)
click to toggle source
# File lib/mattermost/endpoint/oauth.rb, line 27 def regenerate_oauth_app_secret(app_id) post("/oauth/apps/#{app_id}/regen_secret") end
register_oauth_app(app)
click to toggle source
# File lib/mattermost/endpoint/oauth.rb, line 7 def register_oauth_app(app) post("/oauth/apps", :body => app.to_json) end
update_oauth_app(app_id, app)
click to toggle source
# File lib/mattermost/endpoint/oauth.rb, line 19 def update_oauth_app(app_id, app) put("/oauth/apps/#{app_id}", :body => app.to_json) end