Skip to content

Commit

Permalink
Add set_organization method to Board object to work with organizations
Browse files Browse the repository at this point in the history
  • Loading branch information
ultrabug committed Apr 23, 2018
1 parent df1b290 commit 2ba36c3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions trello/board.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,13 @@ def set_description(self, desc):
post_args={'value': desc})
self.description = desc

def set_organization(self, desc):
self.client.fetch_json(
'/boards/{board_id}/idOrganization'.format(board_id=self.id),
http_method='PUT',
post_args={'value': desc})
self.description = desc

def close(self):
self.client.fetch_json(
'/boards/' + self.id + '/closed',
Expand Down

0 comments on commit 2ba36c3

Please sign in to comment.