summaryrefslogtreecommitdiff
path: root/app/syndication
diff options
context:
space:
mode:
Diffstat (limited to 'app/syndication')
-rw-r--r--app/syndication/syndicators.py2
1 files changed, 2 insertions, 0 deletions
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