Flickr API automated login using Python library flickrapi

Posted by Dave Aaron Smith on Stack Overflow See other posts from Stack Overflow or by Dave Aaron Smith
Published on 2010-03-03T16:52:43Z Indexed on 2010/05/31 17:03 UTC
Read the original article Hit count: 334

Filed under:
|
|

I have a web application that I want to sync with Flickr. I don't want the users to have to log into Flickr so I plan to use a single login. I believe I'll need to do something like this:

import flickrapi
flickr = flickrapi.FlickrAPI(myKey, mySecret)
(token, frob) = flickr.get_token_part_one(perms='write', my_auth_callback)
flickr.get_token_part_two((token, frob,))
flickr.what_have_you(...

I don't know what my_auth_callback should look like though. I suspect it will have to post my login information to flickr. Could I do the get_token_part_one step just once manually perhaps and then re-use it in get_token_part_two?

© Stack Overflow or respective owner

Related posts about python

Related posts about django