Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 15
- Log:
Attempt to update Typo to a Typo SVN HEAD release from around the
time the prototype installation was set up on the RISC OS Open Limited
web site. Timestamps place this at 04-Jul so a revision from 05-Jul or
earlier was pulled and copied over the 2.6.0 tarball stable code.
- Author:
- adh
- Date:
- Sat Jul 22 23:27:35 +0100 2006
- Size:
- 5284 Bytes
1 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> |
2 | |
3 | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> |
4 | <head> |
5 | <title>Flickr.rb</title> |
6 | <style> |
7 | body { |
8 | font-family: arial; |
9 | color: #222; |
10 | margin: 0; |
11 | padding: 1.5em; |
12 | font-size: 0.9em; |
13 | } |
14 | h1 { |
15 | margin: 0; |
16 | } |
17 | h1+p { |
18 | margin-top: 0; |
19 | } |
20 | div { |
21 | border-top: 1px solid #ccc; |
22 | } |
23 | h2 { |
24 | float: left; |
25 | text-transform: uppercase; |
26 | font-size: .8em; |
27 | color: #555; |
28 | margin-top: .8em; |
29 | } |
30 | div p { |
31 | margin-top: .8em; |
32 | margin-left: 9em; |
33 | } |
34 | div pre { |
35 | margin-left: 11em; |
36 | } |
37 | code { |
38 | background-color: #ddd; |
39 | padding: 0em; |
40 | } |
41 | code span { |
42 | color: #707; |
43 | } |
44 | </style> |
45 | </head> |
46 | <body> |
47 | <h1>Flickr.rb</h1> |
48 | <p><em>An insanely easy Ruby interface to the <a href="http://flickr.com/services/api/">Flickr</a> photo-sharing service. By Scott Raymond <<a href="mailto:sco@scottraymond.net">sco@redgreenblu.com</a>></em></p> |
49 | |
50 | <div> |
51 | <h2>Get it</h2> |
52 | <p>via RubyGems: <code>gem install flickr</code><br/> |
53 | ...or download the gem: <a href="pkg/flickr-1.0.0.gem">flickr-1.0.0.gem</a><br/> |
54 | ...or just get the source by itself: <a href="flickr.rb">flickr.rb</a></p> |
55 | <p>You'll also need a <a href="http://www.flickr.com/services/api/misc.api_keys.html">Flickr API key</a>.</p> |
56 | </div> |
57 | |
58 | <div> |
59 | <h2>Example</h2> |
60 | <p><pre><code>require 'flickr' |
61 | |
62 | <span># basics</span> |
63 | flickr = Flickr.new <span># create a flickr client</span> |
64 | flickr.login(email, password) <span># log in for actions that require it</span> |
65 | flickr.users <span># get all users currently online</span> |
66 | flickr.photos <span># get the 100 most recent public photos</span> |
67 | flickr.tag('red') <span># search for photos tagged with 'red'</span> |
68 | flickr.groups <span># get all active public groups</span> |
69 | |
70 | <span># working with users</span> |
71 | user = flickr.users('sco') <span># lookup a user by username</span> |
72 | user = flickr.users('sco@scottraymond.net') <span># or email</span> |
73 | user.name <span># get the user's real name</span> |
74 | user.location <span># and location</span> |
75 | user.photos <span># grab their collection of Photo objects...</span> |
76 | user.tag('red') <span># search their photos for the tag 'red'</span> |
77 | user.groups <span># ...the groups they're in...</span> |
78 | user.contacts <span># ...their contacts...</span> |
79 | user.favorites <span># ...favorite photos...</span> |
80 | user.photosets <span># ...their photo sets...</span> |
81 | user.tags <span># ...and their tags</span> |
82 | |
83 | <span># working with photos</span> |
84 | photo = flickr.photos.first <span># get the most recent public photo</span> |
85 | photo.url <span># see the URL for the photo's page...</span> |
86 | photo.url('Original') <span># as well as for its various sizes</span> |
87 | photo.source <span># see the URL for the JPEG itself...</span> |
88 | photo.source('Small') <span># as well as for its various sizes</span> |
89 | photo.title <span># get its title,</span> |
90 | photo.description <span># description,</span> |
91 | photo.owner <span># owner,</span> |
92 | photo.owner.name <span># and its owner's name, etc.</span> |
93 | |
94 | <span># downloading files</span> |
95 | File.open(photo.filename, 'w') do |file| |
96 | file.puts photo.file <span># save the photo to a local file</span> |
97 | end |
98 | flickr.photos.each do |photo| <span># get the last 100 public photos...</span> |
99 | File.open(photo.filename, 'w') do |file| |
100 | file.puts photo.file('Square') <span># ...and save a local copy of their square thumbnail</span> |
101 | end |
102 | end |
103 | |
104 | <span># ...and so much more. see the docs for full details.</span> |
105 | |
106 | </code></pre></p> |
107 | </div> |
108 | |
109 | <div> |
110 | <h2>Documentation</h2> |
111 | <p><a href="doc/">Rdoc Documentation</a><br/><small>Also see: <a href="http://www.flickr.com/services/api/">Original Flickr API reference</a></small></p> |
112 | </div> |
113 | |
114 | <div> |
115 | <h2>License</h2> |
116 | <p><a href="http://www.opensource.org/licenses/mit-license.php">MIT License</a>. Attribution and contribution encouraged.</p> |
117 | </div> |
118 | |
119 | <div> |
120 | <h2>Thanks</h2> |
121 | <p> |
122 | <strong>Maik Schmidt</strong> for <a href="http://www.maik-schmidt.de/xml-simple.html">XmlSimple</a>, |
123 | <strong>Ludicorp</strong> for <a href="http://www.flickr.com/">Flickr</a>, |
124 | and <strong>Premshee Pillai</strong> for <a href="http://premshree.seacrow.com/code/ruby/flickr-ruby">Flickr-ruby</a>. |
125 | </p> |
126 | </div> |
127 | |
128 | </body> |
129 | </html> |