aboutsummaryrefslogtreecommitdiff
path: root/pyactivecollab.py
diff options
context:
space:
mode:
authorCody Hiar <codyfh@gmail.com>2018-03-23 21:00:18 -0600
committerCody Hiar <codyfh@gmail.com>2018-03-23 21:00:18 -0600
commit1674709eaf04923b8dac4a13ef7661803a4e1c4d (patch)
treeb5c8cd8745342e0e00b5df5bb1a18e213d0683e2 /pyactivecollab.py
parente3fb796429c674f2b15a3320144ecd3fbf3139f0 (diff)
Adding ability to add time record to task
Diffstat (limited to 'pyactivecollab.py')
-rw-r--r--pyactivecollab.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/pyactivecollab.py b/pyactivecollab.py
index d8ae306..e37d37a 100644
--- a/pyactivecollab.py
+++ b/pyactivecollab.py
@@ -95,3 +95,7 @@ class ActiveCollab(object):
def get_time_records(self, user_id: str) -> Dict:
"""Get the time records for a user."""
return self.get('/users/{}/time-records'.format(user_id))
+
+ def get_tasks_by_project(self, project_id: str) -> Dict:
+ """Get the tasks for a specific project."""
+ return self.get('/projects/{}/tasks'.format(project_id))