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);
    }