Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/270.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
Php 如何使用谷歌日历API创建聚会?_Php_Api_Google Calendar Api - Fatal编程技术网

Php 如何使用谷歌日历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

这来自谷歌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 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创建聚会?

使用文档中提到的方法可以添加或创建聚会。这是否回答了您的问题?使用文档中提到的方法可以添加或创建会议。这是否回答了您的问题?