Module: Flickry
- Defined in:
- lib/flickry.rb,
lib/flickry/tag.rb,
lib/flickry/base.rb,
lib/flickry/size.rb,
lib/flickry/photo.rb,
lib/flickry/place.rb,
lib/flickry/sizes.rb,
lib/flickry/person.rb,
lib/flickry/comment.rb,
lib/flickry/location.rb
Defined Under Namespace
Classes: Base, Comment, Flickr, Location, Person, Photo, Place, Size, Sizes, Tag
Constant Summary collapse
- VERSION =
'0.3.0'
- FLICKR_HOST =
'api.flickr.com'.freeze
- REST_PATH =
Path of flickr REST API
'/services/rest/?'.freeze
- AUTH_PATH =
Path of flickr auth page
'/services/auth/?'.freeze
- UPLOAD_PATH =
Path of flickr upload
'/services/upload/'.freeze
Class Attribute Summary collapse
-
.api_key ⇒ Object
Your flickr API key, see www.flickr.com/services/api/keys for more information.
-
.shared_secret ⇒ Object
The shared secret of api_key, see www.flickr.com/services/api/keys for more information.
Class Method Summary collapse
-
.api_sig(hsh) ⇒ Object
Returns the signature of hsh.
Class Attribute Details
.api_key ⇒ Object
Your flickr API key, see www.flickr.com/services/api/keys for more information
48 49 50 |
# File 'lib/flickry.rb', line 48 def api_key @api_key end |
.shared_secret ⇒ Object
The shared secret of api_key, see www.flickr.com/services/api/keys for more information
51 52 53 |
# File 'lib/flickry.rb', line 51 def shared_secret @shared_secret end |
Class Method Details
.api_sig(hsh) ⇒ Object
Returns the signature of hsh. This is meant to be passed in the api_sig parameter.
55 56 57 |
# File 'lib/flickry.rb', line 55 def api_sig(hsh) MD5.md5(Flickry.shared_secret + hsh.sort{|a, b| a[0].to_s <=> b[0].to_s }.flatten.join).to_s end |