Skip to content

Commit

Permalink
Add ability to subscribe to a card
Browse files Browse the repository at this point in the history
  • Loading branch information
portante committed Jul 16, 2015
1 parent b5ba124 commit a39b61e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions trello/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -955,6 +955,12 @@ def assign(self, member_id):
http_method='POST',
post_args={'value': member_id, })

def subscribe(self):
self.client.fetch_json(
'/cards/' + self.id + '/subscribed',
http_method='PUT',
post_args={'value': True, })

def comment(self, comment_text):
"""Add a comment to a card."""
self.client.fetch_json(
Expand Down

0 comments on commit a39b61e

Please sign in to comment.