Skip to content

Commit

Permalink
add board fetch_actions docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
Mislav Cimperšak committed Mar 2, 2017
1 parent 72a889d commit 451bf8b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions trello/board.py
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,18 @@ def remove_member(self, member):
return json_obj

def fetch_actions(self, action_filter, action_limit=50, before=None, since=None):
"""Returns all actions that conform to the given filters.
:action_filter: str of possible actions separated by comma ie. 'createCard,updateCard'
:action_limit: int of max items returned
:before: datetime obj
:since: datetime obj
More info on action filter values:
https://developers.trello.com/advanced-reference/board#get-1-boards-board-id-actions
:rtype: json list of past actions
"""
query_params = {'filter': action_filter, 'limit': action_limit}

if since:
Expand Down

0 comments on commit 451bf8b

Please sign in to comment.