Skip to content

Instantly share code, notes, and snippets.

@metavida
Created May 27, 2009 13:42
Show Gist options
  • Save metavida/118646 to your computer and use it in GitHub Desktop.
Save metavida/118646 to your computer and use it in GitHub Desktop.
A simple patch for the flickr 1.0.2 gem based on http://www.flickr.com/services/api/request.rest.html
--- flickr-1.0.2/flickr.rb
+++ flickr-1.0.3/flickr.rb
@@ -56,7 +56,7 @@
# Replace this API key with your own (see http://www.flickr.com/services/api/misc.api_keys.html)
def initialize(api_key=nil, email=nil, password=nil)
@api_key = api_key
- @host = 'http://flickr.com'
+ @host = 'http://api.flickr.com'
@api = '/services/rest'
login(email, password) if email and password
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment