Php Google日历api(超出日历使用限制)
我在我的php项目中使用Google Calendar Api,我每天在执行插入查询时都会收到“Calendar usage limits Oversed”消息,但delete和list方法工作正常——这是我的插入函数。谁能帮我Php Google日历api(超出日历使用限制),php,google-api,calendar,google-calendar-api,google-api-php-client,Php,Google Api,Calendar,Google Calendar Api,Google Api Php Client,我在我的php项目中使用Google Calendar Api,我每天在执行插入查询时都会收到“Calendar usage limits Oversed”消息,但delete和list方法工作正常——这是我的插入函数。谁能帮我 function insertEvent($start, $end, $cId, $namePhoneClient,$myEmail,$trainerMail){ $client = getClient(); $service = new Google_Service
function insertEvent($start, $end, $cId, $namePhoneClient,$myEmail,$trainerMail){
$client = getClient();
$service = new Google_Service_Calendar($client);
$event = new Google_Service_Calendar_Event(array(
'summary' => $namePhoneClient,
'start' => array(
'dateTime' => $start,
'timeZone' => 'Europe/Moscow',
),
'end' => array(
'dateTime' => $end,
'timeZone' => 'Europe/Moscow',
),
'recurrence' => array(
'RRULE:FREQ=DAILY;COUNT=1'
),
'attendees' => array(
array('email' => $myEmail),
array('email' => $trainerMail),
),
));
$calendarId = $cId;
$event_inserted = $service->events->insert($calendarId, $event);
return $event_inserted;
}
您可以看到API使用限制和 详情如下:
- 每天总计1000000次查询
- 在短时间内创建了100000个事件
- 在短时间内创建60个日历
- 在短时间内邀请10000名外部客人
- 在短时间内通过“电子邮件来宾”功能发送2000封电子邮件
- 在短时间内共享750份日历
我建议您插入更少的事件。请发布确切的消息您一天运行多少次插入?我想谷歌在某个地方发布了使用限制,这样你就可以检查你的正常执行是否会超过它。[{“域”:“usageLimits”,“原因”:“QuoteAExceed”,“消息”:“日历使用限制超出”。}]今天我问了2500个问题。我想和你成为朋友,并和你讨论一些事情。我的个人电子邮件是臧伟。mk@outlook.com,你能告诉我你的联系方式吗?我知道这一点,而且控制台中没有超调