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


on getToken (frob) {
	local (mystruct);
	new (tabletype, @mystruct);
	mystruct.api_key =;
	mystruct.frob = frob;
	Flickr.signStruct (@mystruct);
	local (s = [].flickr.auth.getToken (mystruct));
	s = xml.entityDecode (s, true);
	xml.compile (s, @xstruct);
	scratchpad.xstruct = xstruct;
	local (adrauth = xml.getaddress (@xstruct, "auth")); = xml.getvalue (adrauth, "token");
	local (adruser = xml.getaddress (adrauth, "user")); = adruser^.["/atts"].fullname; = adruser^.["/atts"].nsid; = adruser^.["/atts"].username;
	return (};
bundle { //test code
	local (frob = Flickr.api.auth.getFrob ());
	dialog.alert (getToken (frob))}

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.