Permalink
Browse files

Merge pull request #233 from mark-rushakoff/example-fix

Fix example for update_authorization
  • Loading branch information...
2 parents d61cba1 + 98fdd90 commit cb9b838516e64e20f0338032e1c720644429ad37 @sferik sferik committed Apr 7, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 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 cb9b838

Please sign in to comment.