Monday, November 08, 2010 at 12:01 AM.
system.verbs.apps.tumblr.uploadPhoto
on uploadPhoto (f, email=nil, password=nil, generator=nil, caption=nil, clickThroughUrl=nil) { <<Changes <<6/10/09; 11:01:01 AM by DW <<Created. local (id); id = tumblr.newPost ("", "", email, password, "photo", fdata:f, caption:caption, clickThroughUrl:clickThroughUrl, flMultipart:true); return (id)} <<bundle //test code <<local (tc = clock.ticks ()) <<uploadPhoto ("ohio:katzs.jpg", caption:"Katz's Deli, New York, NY. \"Send a salami to your boy in the army!\"", clickThroughUrl:"http://www.katzdeli.com/") <<dialog.alert (clock.ticks () - tc)
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.