class Github::Client::Authorizations::App

def create(*args)

Other tags:
    Api: - public

Options Hash: (**params)
  • :note_url (String) --
  • :note (String) --
  • :scopes (Array) --
  • client_secret (String) --

Parameters:
  • params (Hash) --

Other tags:
    See: https://developer.github.com/v3/oauth_authorizations/#get-or-create-an-authorization-for-a-specific-app -
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