diff --git a/pypodio2/areas.py b/pypodio2/areas.py index 7eb9aec..4795afc 100644 --- a/pypodio2/areas.py +++ b/pypodio2/areas.py @@ -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