src/Task.php
public function getByTaskList($task_list_id, $filter = 'all')
    {
        $task_list_id = (int) $task_list_id;
        if ($task_list_id <= 0) {
            throw new Exception('Invalid param task_list_id');
        }
        $params = [
            'filter'=> $filter
        ];
        $filter = strtolower($filter);
        $validate = ['all', 'pending', 'upcoming','late','today','finished'];
        if (in_array($filter, $validate)) {
            $params['filter'] = 'all';
        }
        return $this->rest->get("todo_lists/$task_list_id/$this->action", $params);
    }
public function getByTaskList($task_list_id, $filter = 'all')
    {
        $task_list_id = (int) $task_list_id;
        if ($task_list_id <= 0) {
            throw new Exception('Invalid param task_list_id');
        }
        $params = [
            'filter'=> $filter
        ];
        $filter = strtolower($filter);
        $validate = ['all', 'pending', 'upcoming','late','today','finished'];
        if (in_array($filter, $validate)) {
            $params['filter'] = 'all';
        }
        return $this->rest->get("todo_lists/$task_list_id/$this->action", $params);
    }
public function getByTaskList ( $ task_list_id , $ filter = 'all' ) { $ task_list_id = ( int ) $ task_list_id ; if ( $ task_list_id <= 0 ) { throw new Exception ( 'Invalid param task_list_id' ) ; } $ params = [ 'filter' => $ filter ] ; $ filter = strtolower ( $ filter ) ; $ validate = [ 'all' , 'pending' , 'upcoming' , 'late' , 'today' , 'finished' ] ; if ( in_array ( $ filter , $ validate ) ) { $ params [ 'filter' ] = 'all' ; } return $ this -> rest -> get ( "todo_lists/$task_list_id/$this->action" , $ params ) ; }
Retrieve all tasks on a task list

GET /todo_lists/#{todo_list_id}/tasks.json
This is almost the same as the “Get list” action, except it does only returns the items.

This is almost the same as the “Get list” action, except it does only returns the items.

If you want to return details about who created each todo item, you must
pass the flag "getCreator=yes". This will then return "creator-id",
"creator-firstname", "creator-lastname" and "creator-avatar-url" for each task.
A flag "canEdit" is returned with each task.

@param int $task_list_id
@param string $filter

@return \TeamWorkPm\Response\Model
@throws \TeamWorkPm\Exception
Retrieve all tasks on a task list