summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2016-06-04 09:53:53 -0400
committerluxagraf <sng@luxagraf.net>2016-06-04 09:53:53 -0400
commit701a1342c2c3632cdac1c88b1780473b760754ab (patch)
treef4d084f4400a2c2aeefe8cbd994f6ccbabbf7a76
parentaf0fce7e27e295479fb2ef0f839cae0a6c40059e (diff)
fixed flickrapi auth bugs
-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