Monday, November 08, 2010 at 12:01 AM.


on findByEmail (email, adrid, adrusername) {
		<<11/29/07; 5:34:19 PM by DW
			<<Created. Give me an email address, and I'll return the id and username.
	flickr.init ();
	local (mystruct);
	new (tabletype, @mystruct);
	mystruct.api_key =;
	mystruct.method = "flickr.people.findByEMail";
	mystruct.find_email = email;
	local (s = [].flickr.people.findByEmail (mystruct), xstruct);
	s = xml.entityDecode (s, true);
	xml.compile (s, @xstruct);
	scratchpad.xstruct = xstruct;
	local (adruser = xml.getaddress (@xstruct, "user"));
	adrid^ = adruser^.["/atts"].id;
	adrusername^ = xml.getvalue (adruser, "username");
	return (true)};
bundle { //test code
	local (id, username);
	findByEmail ("", @id, @username);
	dialog.alert (id + ", " + username)}

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.