public function listTasks(
        string $taskListId,
        Carbon $dueMin = null,
        array $queryParameters = []
    ): array {
        $parameters = [
            'showCompleted' => false,
            'showDeleted'   => true,
            'showHidden'    => true,
        ];

        if (is_null($dueMin)) {
            $dueMin = Carbon::now()->startOfDay();
        }

        $parameters['dueMin'] = $dueMin->format(DateTime::RFC3339);

        $parameters = array_merge($parameters, $queryParameters);

        return $this
            ->taskService
            ->tasks
            ->listTasks($taskListId, $parameters)
            ->getItems();
    }
public function listTasks(
        string $taskListId,
        Carbon $dueMin = null,
        array $queryParameters = []
    ): array {
        $parameters = [
            'showCompleted' => false,
            'showDeleted'   => true,
            'showHidden'    => true,
        ];

        if (is_null($dueMin)) {
            $dueMin = Carbon::now()->startOfDay();
        }

        $parameters['dueMin'] = $dueMin->format(DateTime::RFC3339);

        $parameters = array_merge($parameters, $queryParameters);

        return $this
            ->taskService
            ->tasks
            ->listTasks($taskListId, $parameters)
            ->getItems();
    }
public function listTasks ( string $ taskListId , Carbon $ dueMin = null , array $ queryParameters = [ ] ) : array { $ parameters = [ 'showCompleted' => false , 'showDeleted' => true , 'showHidden' => true , ] ; if ( is_null ( $ dueMin ) ) { $ dueMin = Carbon :: now ( ) -> startOfDay ( ) ; } $ parameters [ 'dueMin' ] = $ dueMin -> format ( DateTime :: RFC3339 ) ; $ parameters = array_merge ( $ parameters , $ queryParameters ) ; return $ this -> taskService -> tasks -> listTasks ( $ taskListId , $ parameters ) -> getItems ( ) ; }
Get task from specified list

@param string               $taskListId      Task list identifier.
@param \Carbon\Carbon|null  $completedMax    Upper bound for a task's completion date (as a RFC 3339 timestamp) to filter by. Optional.
@param \Carbon\Carbon|null  $completedMin    Lower bound for a task's completion date (as a RFC 3339 timestamp) to filter by. Optional.
@param \Carbon\Carbon|null  $dueMax          Upper bound for a task's due date (as a RFC 3339 timestamp) to filter by. Optional.
@param \Carbon\Carbon|null  $dueMin          Lower bound for a task's due date (as a RFC 3339 timestamp) to filter by. Optional.
@param string               $maxResults      Maximum number of task lists returned on one page. Optional. The default is 100.
@param string               $pageToken       Token specifying the result page to return. Optional.
@param boolean              $showCompleted   Flag indicating whether completed tasks are returned in the result. Optional. The default is True.
@param boolean              $showDeleted     Flag indicating whether deleted tasks are returned in the result. Optional. The default is False.
@param boolean              $showHidden      Flag indicating whether hidden tasks are returned in the result. Optional. The default is False.
@param \Carbon\Carbon|null  $updatedMin      Lower bound for a task's last modification time (as a RFC 3339 timestamp) to filter by. Optional.
@param string               $fields          Selector specifying which fields to include in a partial response.

@link https://developers.google.com/google-apps/tasks/v1/reference/tasks/list

@return array
Get task from specified list