S
S
smash_wp2016-08-17 13:41:54
PHP
smash_wp, 2016-08-17 13:41:54

How to create a Google calendar reminder using the API?

I am using api-client for php from google.
I'm trying to create a calendar reminder with the following code:

$this->event = new \Google_Service_Calendar_Event([
                'summary' => $summary,
                'description' => $description,
                'start' => [
                    'date' => date_format($startDate, 'Y-m-d')
                ],
                'end' => [
                    'date' => date_format($endDate, 'Y-m-d')
                ],
                'reminders' => [
                    'useDefault' => false,
                    'overrides' => [
                        'method' => 'popup',
                        'minutes' => '10'
                    ]
                ]
            ])

But an event is created all the time. I know that the two classes are \Google_Service_Calendar_EventReminder and \Google_Service_Calendar_EventReminders .
I dug into the code, and did not find the solution I needed.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
smash_wp, 2016-08-17
@smash_wp

Found the answer. Not yet)
Reminder management has not yet been added to the api.
The question is closed.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question