Skip to content

Commit

Permalink
Saves a new Trello board
Browse files Browse the repository at this point in the history
  • Loading branch information
Diego J. Romero López committed Oct 9, 2016
1 parent 66fb869 commit 2ec62cd
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 @@ -83,8 +83,15 @@ def fetch(self):
except:
self.date_last_activity = None

# Saves a Trello Board
def save(self):
pass
json_obj = self.client.fetch_json(
'/boards/',
http_method='POST',
post_args={'name': self.name, "desc": self.description}, )
# Set initial data from Trello
self.from_json(json_obj=json_obj)
self.id = json_obj["id"]

def close(self):
self.client.fetch_json(
Expand Down

0 comments on commit 2ec62cd

Please sign in to comment.