Level 15
Have you enabled the APIs within google console ? - Though this should throw an error on the application on permissions.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Well, I've been trying to integrate the API for a couple of hours now, for some reason even tho I have no errors whatsoever I still can't add a calendar, event etc..
$client = new \Google_Client();
$client->setApplicationName("GOOGLE CALENDAR");
$client->addScope(\Google_Service_Calendar::CALENDAR);
$client->setAuthConfig('pr-test-4ad4a00e3031.json');
$service = new \Google_Service_Calendar($client);
$calenders = new \Google_Service_Calendar_Calendar();
$calenders->setDescription('ramzi');
$calenders->setSummary('test');
$service->calendars->insert($calenders);
I'm doing something like this, does anyone have experience with this who could help me out? Thanks! I really need to create calendars.
Please or to participate in this conversation.