Skip to content
This repository has been archived by the owner on Jul 19, 2022. It is now read-only.

Update to areas.Task methods #45

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 17 additions & 1 deletion pypodio2/areas.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,11 +244,27 @@ def get(self, **kwargs):
"""
Get tasks endpoint. QueryStrings are kwargs
"""
# should deprecate this method
return self.transport.GET('/task/', **kwargs)

def find_all(self, **kwargs):
"""
Get all tasks. QueryStrings are kwargs
"""
return self.transport.GET('/task/', **kwargs)

def find(self, task_id, **kwargs):
"""
Get the task with the given task_id.

:param task_id: Task ID
:type task_id: str or int
"""
return self.transport.GET(url='/task/%s' % task_id)

def delete(self, task_id):
"""
Deletes the app with the given id.
Deletes the task with the given id.

:param task_id: Task ID
:type task_id: str or int
Expand Down