Start implementation of flickr API
This commit is contained in:
parent
2f8de442f2
commit
1950ffc54a
19
publish_flickr.py
Normal file
19
publish_flickr.py
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
import flickrapi
|
||||||
|
|
||||||
|
api_key =
|
||||||
|
api_secret =
|
||||||
|
|
||||||
|
flickr = flickrapi.FlickrAPI(api_key, api_secret)
|
||||||
|
|
||||||
|
def upload(file_data: dict):
|
||||||
|
flickr.upload(
|
||||||
|
filename = file_data.path,
|
||||||
|
title = file_data.title,
|
||||||
|
description = file_data.description,
|
||||||
|
tags = file_data.tags.join(" "),
|
||||||
|
is_public = 1,
|
||||||
|
format = rest
|
||||||
|
)
|
||||||
|
|
||||||
|
def prepareTags(tags: list):
|
||||||
|
return None
|
Loading…
Reference in New Issue
Block a user