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
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
Get-or-create an authorization for a specific app

 @see https://developer.github.com/v3/oauth_authorizations/#get-or-create-an-authorization-for-a-specific-app

 @param [Hash] params
 @option params [String] client_secret
  The 40 character OAuth app client secret associated with the client
  ID specified in the URL.
 @option params [Array] :scopes
   Optional array - A list of scopes that this authorization is in.
 @option params [String] :note
   Optional string - A note to remind you what the OAuth token is for.
 @option params [String] :note_url
   Optional string - A URL to remind you what the OAuth token is for.

 @example
   github = Github.new
   github.oauth.app.create 'client-id', client_secret: '...'

 @api public