Monday, November 08, 2010 at 12:01 AM.
system.verbs.apps.Flickr.getSizes
on getSizes (id, adrsizestable) {
<<Changes
<<6/10/07; 1:52:36 PM by DW
<<Created.
<<http://www.flickr.com/services/api/flickr.photos.getSizes.html
local (mystruct);
new (tabletype, @mystruct);
mystruct.api_key = user.flickr.prefs.apiKey;
mystruct.photo_id = id;
local (s = [user.flickr.prefs.server].flickr.photos.getSizes (mystruct), xstruct);
s = xml.entitydecode (s, true);
xml.compile (s, @xstruct);
scratchpad.xstruct = xstruct;
local (adrsizes = xml.getaddress (@xstruct, "sizes"), adr);
new (tabletype, adrsizestable);
for adr in adrsizes {
if nameof (adr^) endswith "size" {
adrsizestable^.[adr^.["/atts"].label] = adr^.["/atts"]}}};
bundle { //test code
getSizes ("539372113", @scratchpad.sizes)}
This listing is for code that runs in the OPML Editor environment. I created these listings because I wanted the search engines to index it, so that when I want to look up something in my codebase I don't have to use the much slower search functionality in my object database. Dave Winer.