Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Fix example for update_authorization #233

Merged
merged 1 commit into from

3 participants

@mark-rushakoff

No description provided.

@coveralls

Coverage decreased (-0.02%) when pulling 98fdd90 on mark-rushakoff:example-fix into d61cba1 on pengwynn:master.

View Details

@sferik sferik merged commit cb9b838 into octokit:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Apr 7, 2013
  1. @mark-rushakoff
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/octokit/client/authorizations.rb
View
2  lib/octokit/client/authorizations.rb
@@ -72,7 +72,7 @@ def create_authorization(options={})
# @see http://developer.github.com/v3/oauth/#scopes for available scopes
# @example Update the authorization for user ctshryock's project Zoidberg
# client = Octokit::Client.new(:login => 'ctshryock', :password => 'secret')
- # client.create_authorization({:add_scopes => ["gist", "repo"], :note => "Why not Zoidberg possibly?"})
+ # client.update_authorization(999999, {:add_scopes => ["gist", "repo"], :note => "Why not Zoidberg possibly?"})
def update_authorization(number, options={})
# Techincally we can omit scopes as GitHub has a default, however the
# API will reject us if we send a POST request with an empty body.
Something went wrong with that request. Please try again.