class Github::Authorizations
def update(*args)
github.oauth.update "authorization-id", "add_scopes" => ["repo"],
github = Github.new :basic_auth => 'login:password'
= Examples
* :note_url - Optional string - A URL to remind you what the OAuth token is for.
* :note - Optional string - A note to remind you what the OAuth token is for.
* :remove_scopes - Optional array - A list of scopes to remove from this authorization.
* :add_scopes - Optional array - A list of scopes to add to this authorization.
* :scopes - Optional array - A list of scopes that this authorization is in.
= Inputs
Update an existing authorization
def update(*args) _check_if_authenticated arguments(args, :required => [:authorization_id]) do sift VALID_AUTH_PARAM_NAMES end patch_request("/authorizations/#{authorization_id}", arguments.params) end