Skip to content

Commit

Permalink
Add new method Board.set_name
Browse files Browse the repository at this point in the history
  • Loading branch information
sgaynetdinov committed Nov 11, 2016
1 parent eb79dac commit e2c0611
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion trello/board.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,13 @@ def save(self):
self.from_json(json_obj=json_obj)
self.id = json_obj["id"]

def set_name(self, name):
self.client.fetch_json(
'/boards/{board_id}/name'.format(board_id=self.id),
http_method='PUT',
post_args={'value': name})
self.name = name

def close(self):
self.client.fetch_json(
'/boards/' + self.id + '/closed',
Expand Down Expand Up @@ -329,7 +336,7 @@ def get_members(self, filters=None):

def fetch_actions(self, action_filter, action_limit=50, before=None, since=None):
query_params = {'filter': action_filter, 'limit': action_limit}

if since:
query_params["since"] = since

Expand Down

0 comments on commit e2c0611

Please sign in to comment.