benschwarz / flickr-rest
- Source
- Commits
- Network (0)
- Issues (0)
- Downloads (3)
- Wiki (1)
- Graphs
-
Branch:
master
Ben Schwarz (author)
Wed Feb 18 20:14:19 -0800 2009
commit 9fd6ce324af1c977f69116d32da85c880e379b37
tree 4bc136497b1bf47a444a0dc8ee462000caeab810
parent aee5fdb33d97df4ecd2e8043b7d01ed5b19d8ce7
tree 4bc136497b1bf47a444a0dc8ee462000caeab810
parent aee5fdb33d97df4ecd2e8043b7d01ed5b19d8ce7
| name | age | message | |
|---|---|---|---|
| |
README.markdown | ||
| |
doc/ | ||
| |
flickr-rest.gemspec | ||
| |
lib/ | ||
| |
pkg/ | ||
| |
spec/ |
README.markdown
Introduction
flickr-rest is a stab at removing all the stuff that you don't really want to do. There are no specific photo methods, community. Nothing.
Simply use it to query the bits you want. If you want a flickr api wrapper, use the flickr gem.
Usage
require 'flickr-rest'
Flickr::Query::CONFIG_PATH = '/path/to/flickr.yml'
flickr = Flickr::Query.new('flickr.test.echo')
# Raw JSON response (String)
flickr.raw
=> '{"api_key":{"_content":"2b60171843b346aa104e3a38d0129e5e"}, "format":{"_content":"json"}, "nojsoncallback":{"_content":"1"}, "method":{"_content":"flickr.test.echo"}, "stat":"ok"}'
# A clean, tidy ruby object
flickr.parsed
=> {:api_key=>"2b60171843b346aa104e3a38d0129e5e", :format=>"json", :method=>"flickr.test.echo", :nojsoncallback=>"1"}

