Added photos/share endpoint (currently not implemented in frontend)
This commit is contained in:
parent
e904a629f9
commit
6b3f010920
3 changed files with 32 additions and 1 deletions
|
@ -23,7 +23,15 @@ class ApiPhotos(ApiBase):
|
|||
photos = self._result_to_list(photos)
|
||||
return [Photo(self._client, photo) for photo in photos]
|
||||
|
||||
# def share(self, **kwds):
|
||||
def share(self, filters=None, **kwds):
|
||||
"""
|
||||
Endpoint: /photos/[<filters>/share.json
|
||||
|
||||
Not currently implemented.
|
||||
"""
|
||||
filter_string = self._build_filter_string(filters)
|
||||
return self._client.post("/photos/%sshare.json" % filter_string,
|
||||
**kwds)["result"]
|
||||
|
||||
def delete(self, photos, **kwds):
|
||||
"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue