Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/422.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript PHP Google insert日历事件API在我的代码中不起作用_Javascript_Php - Fatal编程技术网

Javascript PHP Google insert日历事件API在我的代码中不起作用

Javascript PHP Google insert日历事件API在我的代码中不起作用,javascript,php,Javascript,Php,$objCalendarEventDetails=$objGoogleCalendarService->events->insert($strCalendard,$objGoogleEvent,['sendNotifications'=>true]) $conferenceDataArr = [ "createRequest" => [ "conferenceSol

$objCalendarEventDetails=$objGoogleCalendarService->events->insert($strCalendard,$objGoogleEvent,['sendNotifications'=>true])

            $conferenceDataArr = [
                "createRequest" => [
                    "conferenceSolutionKey" => [
                        "type" => "hangoutsMeet"
                    ],
                    "requestId" => "45645645654"
                ] ];

            $objCalendarEventDetails->setConferenceData( $conferenceDataArr );
            $objCalendarEventDetails->setConferenceDataVersion( 1 );
            $objGoogleCalendarService->events->patch($strCalendarId, $objCalendarEventDetails->getId(), $objCalendarEventDetails, ['sendNotifications' => true]);