loduis / teamwork.com-project-management

PHP API for Teamwork.com
https://developer.teamwork.com/
MIT License
70 stars 59 forks source link

Pass parameters to getByTaskList #18

Open otsalko opened 10 years ago

otsalko commented 10 years ago

Hi,

I want to retrieve all tasks EXcluding sub-tasks on a task list. For this, I use GET /tasklists/{taskListId}/tasks.json?getSubTasks=no

So, it's getByTaskList from TeamWorkPm\Task respectively.

/**
* @param int $task_list_id
* @param mixed $params
*/

public function getByTaskList($task_list_id, $filter = 'all'){...}

How can I do this if getByTaskList accepts no other parameters but filter only?

P.S. Please notice, that the second argument should be mixed $params, as stated in the method doc.

Thanks.

loduis commented 10 years ago

Hi, I agree, what happens is that the api has changed since its initial version, and have not had time free to make fixed, to the code