Added photos/share endpoint (currently not implemented in frontend)

This commit is contained in:
sneakypete81 2013-09-11 17:27:21 +01:00
parent e904a629f9
commit 6b3f010920
3 changed files with 32 additions and 1 deletions

View file

@ -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):
"""