Module: Mastodon::REST::Apps
Instance Method Summary collapse
-
#create_app(name, redirect_uri) ⇒ Mastodon::App
Register a new OAuth client app on the target instance.
Methods included from Utils
#array_param, #perform_request, #perform_request_with_collection, #perform_request_with_object
Instance Method Details
#create_app(name, redirect_uri) ⇒ Mastodon::App
Register a new OAuth client app on the target instance
13 14 15 |
# File 'lib/mastodon/rest/apps.rb', line 13 def create_app(name, redirect_uri) perform_request_with_object(:post, '/api/v1/apps', { client_name: name, redirect_uris: redirect_uri }, Mastodon::App) end |