Added album add/remove endpoints

This commit is contained in:
sneakypete81 2013-09-08 17:22:25 +01:00
parent 3bd733b229
commit f8aecde457
13 changed files with 273 additions and 79 deletions

View file

@ -8,12 +8,12 @@ from .api_base import ApiBase
class ApiActivities(ApiBase):
""" Definitions of /activities/ API endpoints """
def list(self, filters={}, **kwds):
def list(self, filters=None, **kwds):
"""
Endpoint: /activities/[<filters>]/list.json
Returns a list of Activity objects.
The filters parameter can be used to narrow down the returned activities.
The filters parameter can be used to narrow down the activities.
Eg: filters={"type": "photo-upload"}
"""
filter_string = self._build_filter_string(filters)