public
Description: Simple gem to fetch photos from Flickr's REST API
Homepage: http://www.estadobeta.com
Clone URL: git://github.com/ismasan/mini_flickr.git
Search Repo:
Added README info and examples
ismasan (author)
Wed May 14 13:15:02 -0700 2008
commit  089564a544031c758d804460f4596ff9c30cca18
tree    91867a17d846562a1927f24ddc3ecd6a48e8a788
parent  00551ff57865fad4a414f7716a614bf5006df84f
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
 
 
15
16
17
...
19
20
21
22
23
24
25
26
27
...
1
2
3
 
4
5
6
7
8
9
 
 
 
 
10
11
12
13
14
...
16
17
18
 
 
 
 
 
 
0
@@ -1,17 +1,14 @@
0
 History.txt
0
 License.txt
0
 Manifest.txt
0
-PostInstall.txt
0
 README.txt
0
 Rakefile
0
 config/hoe.rb
0
 config/requirements.rb
0
 lib/mini_flickr.rb
0
 lib/mini_flickr/version.rb
0
-script/console
0
-script/destroy
0
-script/generate
0
-script/txt2html
0
+lib/mini_flickr/base.rb
0
+lib/mini_flickr/photo.rb
0
 setup.rb
0
 spec/mini_flickr_spec.rb
0
 spec/spec.opts
0
@@ -19,9 +16,3 @@ spec/spec_helper.rb
0
 tasks/deployment.rake
0
 tasks/environment.rake
0
 tasks/rspec.rake
0
-tasks/website.rake
0
-website/index.html
0
-website/index.txt
0
-website/javascripts/rounded_corners_lite.inc.js
0
-website/stylesheets/screen.css
0
-website/template.html.erb
...
1
2
3
 
4
5
6
7
 
 
 
 
 
8
9
10
...
12
13
14
15
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
16
17
18
19
 
20
21
22
23
 
 
 
 
 
24
25
26
...
1
2
 
3
4
5
6
 
7
8
9
10
11
12
13
14
...
16
17
18
 
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
 
60
61
62
63
 
64
65
66
67
68
69
70
71
0
@@ -1,10 +1,14 @@
0
 = mini_flickr
0
 
0
-* http://github.com/ismasan
0
+* http://github.com/ismasan/mini_flickr/tree/master
0
 
0
 == DESCRIPTION:
0
 
0
-FIX (describe your package)
0
+Simple gem to fetch your Flickr photos through Flickr's REST API
0
+
0
+Get your Flickr API_KEY at http://www.flickr.com/services/api/keys/
0
+
0
+Get your Flickr user id at http://idgettr.com/
0
 
0
 == FEATURES/PROBLEMS:
0
 
0
@@ -12,15 +16,56 @@ FIX (describe your package)
0
 
0
 == SYNOPSIS:
0
 
0
- FIX (code sample of usage)
0
+ class MyFlickr
0
+ include MiniFlickr::Base
0
+ connect_to_flickr :api_key => 'your-api-key', :user_id => 'your-user-id'
0
+ end
0
+
0
+ flickr = MyFlickr.new
0
+
0
+ <% flickr.photos.each do |photo| %>
0
+ <a href="<%= photo.medium_url %>">
0
+ <img src="<%= photo.small %>" />
0
+ </a>
0
+ <% end %>
0
+
0
+=== Each photo has:
0
+
0
+==== Source image urls for sizes
0
+
0
+photo.square
0
+
0
+photo.thumbnail
0
+
0
+photo.small
0
+
0
+photo.medium
0
+
0
+photo.original
0
+
0
+==== Page urls for sizes
0
+
0
+photo.square_url
0
+
0
+photo.thumbnail_url
0
+
0
+photo.small_url
0
+
0
+photo.medium_url
0
+
0
+photo.original_url
0
 
0
 == REQUIREMENTS:
0
 
0
-* FIX (list of requirements)
0
+* Hpricot (sudo gem install hpricot)
0
 
0
 == INSTALL:
0
 
0
-* FIX (sudo gem install, anything else)
0
+* git clone git://github.com/ismasan/mini_flickr.git
0
+
0
+* cd mini_flickr
0
+
0
+* rake install_gem
0
 
0
 == LICENSE:
0
 
...
8
9
10
11
 
12
13
14
...
8
9
10
 
11
12
13
14
0
@@ -8,7 +8,7 @@ end
0
 describe MiniFlickr::Base,"Fetching a Flickr stream" do
0
   
0
   before(:each) do
0
- @api_key = '3e1f4be8ca3695398b7b15497d9a9b86'
0
+ @api_key = 'your-api-key-here'
0
     @user_id = '96045892@N00'
0
     MyFlickr.connect_to_flickr(
0
       :api_key => @api_key,

Comments

    No one has commented yet.