From 701a1342c2c3632cdac1c88b1780473b760754ab Mon Sep 17 00:00:00 2001 From: luxagraf Date: Sat, 4 Jun 2016 09:53:53 -0400 Subject: fixed flickrapi auth bugs --- app/syndication/syndicators.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'app/syndication/syndicators.py') diff --git a/app/syndication/syndicators.py b/app/syndication/syndicators.py index f4709c7..0c35e06 100644 --- a/app/syndication/syndicators.py +++ b/app/syndication/syndicators.py @@ -67,6 +67,8 @@ def post_photo_to_twitter(photo): def post_photo_to_flickr(photo): flickr = flickrapi.FlickrAPI(settings.FLICKR_API_KEY, settings.FLICKR_API_SECRET) + authorize_url = flickr.auth_url(perms='write') + flickr.get_access_token(settings.FLICKR_VERIFIER) sent = flickr.upload(filename=photo.get_image_path_by_size("original"), title=photo.title, description=photo.caption) photo_id = sent.find('photoid').text photo.flickr_id = photo_id -- cgit v1.2.3