def create(*args)
      raise_authentication_error unless authenticated?
      arguments(args) do
        assert_required :note, :scopes
      end

      post_request('/authorizations', arguments.params)
    end
def create(*args)
      raise_authentication_error unless authenticated?
      arguments(args) do
        assert_required :note, :scopes
      end

      post_request('/authorizations', arguments.params)
    end
Create a new authorization

 @see https://developer.github.com/v3/oauth_authorizations/#create-a-new-authorization

 @param [Hash] params
 @option params [Array[String]] :scopes
   A list of scopes that this authorization is in.
 @option params [String] :note
   Required. A note to remind you what the OAuth token is for.
 @option params [String] :note_url
   A URL to remind you what the OAuth token is for.
 @option params [String] :client_id
   The 20 character OAuth app client key for which to create the token.
 @option params [String] :client_secret
   The 40 character OAuth app client secret for which to create the token.
 @option params [String] :fingerprint
   A unique string to distinguish an authorization from others
   created for the same client ID and user.

 @example
   github = Github.new basic_auth: 'login:password'
   github.oauth.create scopes: ["public_repo"], note: 'amdmin script'

 @api public