0.0
No commit activity in last 3 years
No release in over 3 years
Flickr API adapter using OAuth
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 2.6
>= 1.7
>= 1.6

Runtime

 Project Readme

flickr_oauth

Flickr API adapter for Ruby using OAuth authentication method.

USAGE

You can instantiate an instance of Flickr

require 'flickr_oauth'

flickr = Flickr.new(
  :consumer_key => CONSUMER_KEY, 
  :consumer_secret => CONSUMER_SECRET, 
  :token => OAUTH_ACCESS_TOKEN, 
  :token_secret => OAUTH_ACCESS_TOKEN_SECRET,
  :format => :json
)
flickr.test.echo(:foo => 'bar')

Or, you can use the flickr method:

require 'flickr_oauth'

flickr.test.echo(:foo => 'bar', 
  :consumer_key => CONSUMER_KEY, 
  :consumer_secret => CONSUMER_SECRET, 
  :token => OAUTH_ACCESS_TOKEN, 
  :token_secret => OAUTH_ACCESS_TOKEN_SECRET,
  :format => :json
)

For photo upload:

flickr.upload(
  PATH_TO_IMAGE_FILE
  :title => 'test upload',            # optional
  :description => 'this is a test',   # optional
  :tags => 'test upload',             # optional
  :content_type => 'image/jpeg',      # optional
  :consumer_key => CONSUMER_KEY, 
  :consumer_secret => CONSUMER_SECRET, 
  :token => OAUTH_ACCESS_TOKEN, 
  :token_secret => OAUTH_ACCESS_TOKEN_SECRET
)

TODO

  • flickr_oauth may support all of the existing Flickr API methods, with the exception of those that require no additional arguments, to name a few:

    • flickr.test.null
    • flickr.test.login
    • flickr.photos.licenses.getInfo
  • Upload/replace

  • More tests

ACKNOWLEDGEMENT

Much of the code has been patterned around the twitter gem.