Skip to content

GoogleSheetsCron

For remote execution of import or export, such as via cron.

Snippet parameters:

NameDescription
idObject ID.
typeObject type (export||import).

Example:

php
{set $result = 'GoogleSheets' | snippet: [
    'type' => 'export', 
    'id' => 5
]}

{$result|print}

Response:

text
Array   
(
    [success] => 1
    [message] => 
    [total] => 132
    [errors] => Array
        (
        )

    [object] => Array
        (
            [completed] => 
            [updates] => Array
                (
                    [updatedRows] => 132
                    [updatedColumns] => 16
                    [updatedCells] => 2112
                )

        )

)

© GoogleSheets 2019-present