PHP code example of leandroferreirama / google-calendar
1. Go to this page and download the library: Download leandroferreirama/google-calendar library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
leandroferreirama / google-calendar example snippets
eandroFerreiraMa\GoogleCalendar\Schedule;
$schedule = new Schedule(
'ya29.****** removid for secure'
);
$create = $schedule->create(
"Title test",
(new DateTime('2023-07-11 03:45:00')),
(new DateTime('2023-07-11 04:45:00')),
"Description test",
"location test",
"primary",
[
"email" => "[email protected]",
"email" => "[email protected]"
]
);
var_dump($create->response());
eandroFerreiraMa\GoogleCalendar\Schedule;
$schedule = new Schedule(
'ya29.****** removid for secure'
);
$update = $schedule->update(
"eventId****",
"Title test",
(new DateTime('2023-07-11 03:45:00')),
(new DateTime('2023-07-11 04:45:00')),
"Description test",
"location test",
"primary",
"cancelled",
[
"email" => "[email protected]",
"email" => "[email protected]"
]
);
var_dump($update->response());
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.