ismasan / mini_flickr
- Source
- Commits
- Network (0)
- Issues (0)
- Downloads (0)
- Wiki (1)
- Graphs
-
Tree:
f47d2fc
mini_flickr / README.txt
| 00551ff5 » | ismasan | 2008-05-14 | 1 | = mini_flickr | |
| 2 | |||||
| 089564a5 » | ismasan | 2008-05-14 | 3 | * http://github.com/ismasan/mini_flickr/tree/master | |
| 00551ff5 » | ismasan | 2008-05-14 | 4 | ||
| 5 | == DESCRIPTION: | ||||
| 6 | |||||
| 089564a5 » | ismasan | 2008-05-14 | 7 | Simple gem to fetch your Flickr photos through Flickr's REST API | |
| 8 | |||||
| 9 | Get your Flickr API_KEY at http://www.flickr.com/services/api/keys/ | ||||
| 10 | |||||
| 11 | Get your Flickr user id at http://idgettr.com/ | ||||
| 00551ff5 » | ismasan | 2008-05-14 | 12 | ||
| 13 | == FEATURES/PROBLEMS: | ||||
| 14 | |||||
| f47d2fc9 » | ismasan | 2008-05-14 | 15 | * For now it just fetches the latest 30 photos | |
| 16 | |||||
| 17 | * This is not meant to upload photos to Flickr | ||||
| 00551ff5 » | ismasan | 2008-05-14 | 18 | ||
| 19 | == SYNOPSIS: | ||||
| 20 | |||||
| 089564a5 » | ismasan | 2008-05-14 | 21 | class MyFlickr | |
| 22 | include MiniFlickr::Base | ||||
| 23 | connect_to_flickr :api_key => 'your-api-key', :user_id => 'your-user-id' | ||||
| 24 | end | ||||
| 25 | |||||
| 26 | flickr = MyFlickr.new | ||||
| 27 | |||||
| 28 | <% flickr.photos.each do |photo| %> | ||||
| 29 | <a href="<%= photo.medium_url %>"> | ||||
| 30 | <img src="<%= photo.small %>" /> | ||||
| 31 | </a> | ||||
| 32 | <% end %> | ||||
| 33 | |||||
| 34 | === Each photo has: | ||||
| 35 | |||||
| 36 | ==== Source image urls for sizes | ||||
| 37 | |||||
| 38 | photo.square | ||||
| 39 | |||||
| 40 | photo.thumbnail | ||||
| 41 | |||||
| 42 | photo.small | ||||
| 43 | |||||
| 44 | photo.medium | ||||
| 45 | |||||
| 46 | photo.original | ||||
| 47 | |||||
| 48 | ==== Page urls for sizes | ||||
| 49 | |||||
| 50 | photo.square_url | ||||
| 51 | |||||
| 52 | photo.thumbnail_url | ||||
| 53 | |||||
| 54 | photo.small_url | ||||
| 55 | |||||
| 56 | photo.medium_url | ||||
| 57 | |||||
| 58 | photo.original_url | ||||
| 00551ff5 » | ismasan | 2008-05-14 | 59 | ||
| 60 | == REQUIREMENTS: | ||||
| 61 | |||||
| 089564a5 » | ismasan | 2008-05-14 | 62 | * Hpricot (sudo gem install hpricot) | |
| 00551ff5 » | ismasan | 2008-05-14 | 63 | ||
| 64 | == INSTALL: | ||||
| 65 | |||||
| 089564a5 » | ismasan | 2008-05-14 | 66 | * git clone git://github.com/ismasan/mini_flickr.git | |
| 67 | |||||
| 68 | * cd mini_flickr | ||||
| 69 | |||||
| 70 | * rake install_gem | ||||
| 00551ff5 » | ismasan | 2008-05-14 | 71 | ||
| 72 | == LICENSE: | ||||
| 73 | |||||
| 74 | (The MIT License) | ||||
| 75 | |||||
| f47d2fc9 » | ismasan | 2008-05-14 | 76 | Copyright (c) 2008 Ismael Celis | |
| 00551ff5 » | ismasan | 2008-05-14 | 77 | ||
| 78 | Permission is hereby granted, free of charge, to any person obtaining | ||||
| 79 | a copy of this software and associated documentation files (the | ||||
| 80 | 'Software'), to deal in the Software without restriction, including | ||||
| 81 | without limitation the rights to use, copy, modify, merge, publish, | ||||
| 82 | distribute, sublicense, and/or sell copies of the Software, and to | ||||
| 83 | permit persons to whom the Software is furnished to do so, subject to | ||||
| 84 | the following conditions: | ||||
| 85 | |||||
| 86 | The above copyright notice and this permission notice shall be | ||||
| 87 | included in all copies or substantial portions of the Software. | ||||
| 88 | |||||
| 89 | THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, | ||||
| 90 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | ||||
| 91 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. | ||||
| 92 | IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY | ||||
| 93 | CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, | ||||
| 94 | TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE | ||||
| 95 | SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||||
