Method: Github::Client::Authorizations::App#create
- Defined in:
- lib/github_api/client/authorizations/app.rb
#create(*args) ⇒ Object
Get-or-create an authorization for a specific app
25 26 27 28 29 30 31 32 33 34 |
# File 'lib/github_api/client/authorizations/app.rb', line 25 def create(*args) raise_authentication_error unless authenticated? arguments(args, required: [:client_id]) if arguments.client_id put_request("/authorizations/clients/#{arguments.client_id}", arguments.params) else raise raise_app_authentication_error end end |