Module: Flickr

Extended by:
Api, Configuration
Defined in:
lib/flickr.rb,
lib/flickr/api.rb,
lib/flickr/error.rb,
lib/flickr/oauth.rb,
lib/flickr/client.rb,
lib/flickr/object.rb,
lib/flickr/api/set.rb,
lib/flickr/version.rb,
lib/flickr/api/photo.rb,
lib/flickr/api/person.rb,
lib/flickr/attributes.rb,
lib/flickr/middleware.rb,
lib/flickr/object/set.rb,
lib/flickr/api/general.rb,
lib/flickr/api/license.rb,
lib/flickr/client/data.rb,
lib/flickr/object/list.rb,
lib/flickr/api/abstract.rb,
lib/flickr/client/oauth.rb,
lib/flickr/object/photo.rb,
lib/flickr/client/upload.rb,
lib/flickr/configuration.rb,
lib/flickr/object/person.rb,
lib/flickr/base_converter.rb,
lib/flickr/object/license.rb,
lib/flickr/sanitized_file.rb,
lib/flickr/object/location.rb,
lib/flickr/object/photo/tag.rb,
lib/flickr/api/upload_ticket.rb,
lib/flickr/object/photo/exif.rb,
lib/flickr/object/photo/note.rb,
lib/flickr/object/photo/size.rb,
lib/flickr/object/visibility.rb,
lib/flickr/object/list/normal.rb,
lib/flickr/object/permissions.rb,
lib/flickr/object/list/kaminari.rb,
lib/flickr/object/upload_ticket.rb,
lib/flickr/object/list/will_paginate.rb,
lib/flickr/object/person/upload_status.rb,
lib/flickr/api/abstract/params_processor.rb,
lib/flickr/object/attribute_locations/set.rb,
lib/flickr/object/attribute_locations/list.rb,
lib/flickr/object/attribute_locations/photo.rb,
lib/flickr/object/attribute_locations/person.rb,
lib/flickr/object/attribute_locations/location.rb,
lib/flickr/object/attribute_locations/photo/tag.rb,
lib/flickr/object/attribute_locations/photo/exif.rb,
lib/flickr/object/attribute_locations/photo/note.rb,
lib/flickr/object/attribute_locations/visibility.rb,
lib/flickr/object/attribute_locations/permissions.rb,
lib/flickr/object/attribute_locations/upload_ticket.rb,
lib/flickr/object/attribute_locations/person/upload_status.rb

Defined Under Namespace

Modules: Api, Configuration, OAuth Classes: ApiError, Error, OAuthError, Object, TimeoutError

Constant Summary collapse

VERSION =
"0.6.3"

Instance Attribute Summary

Attributes included from Configuration

#access_token_key, #access_token_secret, #api_key, #cache, #open_timeout, #pagination, #proxy, #shared_secret, #timeout, #use_ssl

Class Method Summary collapse

Methods included from Api

check_upload_tickets, get_methods, licenses, people, photos, replace, sets, test_echo, test_login, test_null, upload, upload_tickets

Methods included from Configuration

configure

Class Method Details

.new(access_token_key, access_token_secret) ⇒ Flickr

If you're obtaining the access token dynamically, then you can't set it in the global configuration. This method allows you to create a temporary instance with the access token.

Examples:

flickr = Flickr.new("KEY", "SECRET")
flickr.photos.get_recent
# ...

Returns:


66
67
68
69
70
71
# File 'lib/flickr.rb', line 66

def self.new(access_token_key, access_token_secret)
  dup.configure do |config|
    config.access_token_key    = access_token_key
    config.access_token_secret = access_token_secret
  end
end