'task' not a key of responses when getting a project's tasks
w0ut0 opened this issue · 1 comments
w0ut0 commented
After fetching a project, I want to get the project's tasks.
project = ls_client.get_project(10)
task_ids = project.get_tasks()
In the SDK, this calls
response = self.make_request('GET', '/api/tasks', params)
However, this returns an array of tasks, so the following line fails:
#project.py:702
data = response.json()
tasks = data['tasks']
Switching the endpoint to /api/dm/tasks
seems to work.
makseq commented
Please, update your LS instance to the latest master branch or downgrade SDK version. This api/dm/tasks is deprecated.