The Flickr Authentication docs have said that authentication for mobile applications might be available in the future. Apparently the future has not yet distributed to Flickr. The authentication interfaces rely on punching out to a browser to give permission to the application. Pretty lame. Makes me wonder how ZoneTag manages to upload. I thought there was a simple post interface to Flickr at one point… I’m quite sure I developed against it at one point. I can’t find any docs about it now though, and the examples I have don’t seem to work any more.
The E61 I’m using includes the Nokia open source browser however, so I was curious if I could use it for the Flickr authentication API from a Python script on my phone. I would love to be able to take the card from my camera and upload the images on it over wifi from my phone without involving my laptop. I haven’t made the script run on it’s own yet, but here it is. I loaded both of the files in the zip (a hacked version of uploadr python tool, and a urllib2 I pulled out of my desktop Python install and removed stuff from till it loaded and ran without exceptions) into the lib directory of my python install and tested it out like this:
>>> import uploadr
>>> flick = uploadr.Uploadr()
>>> flick.uploadImage('e:\\Images\\miker.jpg')
It outputs a bunch of debugging info, and should startup the browser at some point and ask you to login and allow the app access to your flickr account. When it’s done, you should have a new photo up on the site. Getting the browser popped up was a bitch, apparently there’s a lot that’s changed in 3rd edition. I picked up the tip for how to do this from a forum posting somewhere:
def openurl( self, url ):
browser = 'BrowserNG.exe'
e32.start_exe(browser, ' "4 %s"' %url, 1)
What’s that 4 do before the url? Not really sure, but trying it without that number or with other numbers didn’t work at all. Also, I didn’t realize that P60 was up to version 1.3.13 until I hit the sourceforge download page directly. There are 3 or 4 pages that served as homepage for P60 over time, and the one I had bookmarked said 1.3.8 was the most recent. In 1.3.13 the library path problems seem to be fixed, so I would highly recommend grabbing the new version to avoid some annoyances that made debugging and testing pretty difficult.
It is kinda cool that the open source browser works well enough to perform the authentication. I’ll have to get the upload list stuff working again, and make sure it pulls images from the mmc card for my camera by default.

It seems that the direct upload using username/password is not possible since some time…And yes, the current approach is definitively lame for mobile application..That’s the current issue wit mobup ( sourceforge.net/projects/mobup/ ) an open source flickr uploader in Java..
But I am not sure I completely understand your example. Did you mean that you were able to give back the authentification token to your application? In which way?
Yes, it’s actually an approval of a ticket that needs to be done in the browser. Which didn’t work with any of the mobile browsers I tried with before. However now the Nokia Open Source browser handles it and I can make it through a (definitely very cumbersome) authentication cycle.
about the paramter to open the browser:
http://wiki.forum.nokia.com/index.php/TSS000340_-_Launching_the_Web_browser_on_S60_3rd_Edition_to_open_a_specified_URL
Here is some additional information about the parameters that are passed as command line arguments when launching the OSS Browser:
1. Start/Continue the browser and nothing is specified (the default case)
=> Parameter =
2. Start/Continue the browser specifying a Bookmark
=> Parameter = “1â€+â€â€œ+â€â€
3. Start/Continue the browser specifying a Saved deck
=> Parameter = “2â€+†“+â€â€
4. Start/Continue the browser specifying a URL
=> Parameter = “4â€+†“+â€â€
5. Start/Continue the browser specifying a URL and an Access Point
=> Parameter = “4â€+â€â€œ+â€â€+â€â€œ+â€â€
6. Start/Continue the browser with the start page. (Used when starting the browser with a long press of “0†in the Idle state of the phone.
=> Parameter = “5â€
7. Start/Continue the browser specifying a Bookmark folder
=> Parameter = “6â€+†“+â€â€
Pingback: Open browser from PyS60 « typing: Zandi