Browse files

allow the extra parameter to be used in the auth url

  • Loading branch information...
1 parent f453258 commit 82fc5dbd83bccb022ad71f36a32e8bf20da4d3d5 Caleb Land committed Nov 15, 2010
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/flickr_party.rb
View
6 lib/flickr_party.rb
@@ -44,10 +44,10 @@ def method_missing(method_name, args={}, test=nil)
end
end
- def auth_url(perms='read')
+ def auth_url(perms='read', extra = nil)
@frob = self.flickr.auth.getFrob['rsp']['frob']
- sig = Digest::MD5.hexdigest("#{@secret}api_key#{@api_key}frob#{@frob}perms#{perms}")
- "http://flickr.com/services/auth/?api_key=#{@api_key}&perms=#{perms}&frob=#{@frob}&api_sig=#{sig}"
+ sig = Digest::MD5.hexdigest("#{@secret}api_key#{@api_key}extra#{extra}frob#{@frob}perms#{perms}")
+ "http://flickr.com/services/auth/?api_key=#{@api_key}&perms=#{perms}&frob=#{@frob}&api_sig=#{sig}&extra=#{extra}"
end
def complete_auth(frob='put_your_frob_here')

0 comments on commit 82fc5db

Please sign in to comment.