Skip to content
Browse files

Fix example for update_authorization

  • Loading branch information...
1 parent d61cba1 commit 98fdd901c0d96d291b89a53c80715ccc4c9ead56 @mark-rushakoff mark-rushakoff committed
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.

0 comments on commit 98fdd90

Please sign in to comment.
Something went wrong with that request. Please try again.