Skip to content

Commit

Permalink
added fetch_checklist_content
Browse files Browse the repository at this point in the history
  • Loading branch information
Ctri-The-Third committed Mar 17, 2022
1 parent 7ed6a45 commit 2462130
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions trello.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,13 @@ def add_item_to_checklist(self, checklistID, text):
return
return

def fetch_checklist_content(self, checklist_id):
url = "https://api.trello.com/1/checklists/%s" % (checklist_id)
params = self._get_trello_params()
r = requests.get(url=url,params=params)
if r.status_code != 200:
lo.error("Couldn't fetch checklist content %s" % (r.status_code, r.content))


def delete_checklist_item(self,checklist_id, checklist_item_id):
url = "https://api.trello.com/1/checklists/%s/checkItems/%s" % (checklist_id,checklist_id,checklist_item_id)
Expand Down

0 comments on commit 2462130

Please sign in to comment.