Php 如何使用谷歌日历API创建聚会?
这来自谷歌API文档 **它的工作很好,但我需要自动创建闲逛会议**Php 如何使用谷歌日历API创建聚会?,php,api,google-calendar-api,Php,Api,Google Calendar Api,这来自谷歌API文档 **它的工作很好,但我需要自动创建闲逛会议** `$event = new Google_Service_Calendar_Event(array( 'summary' => 'GooGlE API', 'location' => '800 Howard St., San Francisco, CA 94103', 'description' => 'A chance to hear more about Google\'s dev
`$event = new Google_Service_Calendar_Event(array(
'summary' => 'GooGlE API',
'location' => '800 Howard St., San Francisco, CA 94103',
'description' => 'A chance to hear more about Google\'s developer products.',
'start' => array(
'dateTime' => '2020-06-02T09:00:00-07:00',
'timeZone' => 'America/Los_Angeles',
),
'end' => array(
'dateTime' => '2020-06-02T09:00:00-07:00',
'timeZone' => 'America/Los_Angeles',
),
'recurrence' => array(
'RRULE:FREQ=DAILY;COUNT=1'
),
'attendees' => array(
// array('email' => 'sbrin@example.com'),
),
'reminders' => array(
'useDefault' => FALSE,
'overrides' => array(
array('method' => 'email', 'minutes' => 24 * 60),
array('method' => 'popup', 'minutes' => 10),
),
),
));
$calendarId = 'primary';
$event = $service->events->insert($calendarId, $event);
printf('Event created: %s\n', $event->htmlLink);`
如何使用谷歌日历API创建聚会?使用文档中提到的方法可以添加或创建聚会。这是否回答了您的问题?使用文档中提到的方法可以添加或创建会议。这是否回答了您的问题?