Google 日历 API(超出日历使用限制) [英] Google calendar api (Calendar usage limits exceeded)

查看:27
本文介绍了Google 日历 API(超出日历使用限制)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的 php 项目中使用 Google Calendar Api,并且我每天都会收到超出日历使用限制"的情况.插入查询时的消息,但删除和列表方法工作正常․这是我的插入功能.谁能帮帮我?

I am using Google Calendar Api in my php project, and I every day get "Calendar usage limits exceeded" message when I doing insert query, but delete and list methods work fine․ It is my insert function. who can help me?

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 使用限制 这里这里.

You can see the API usage limits here and here.

它们如下:

  • 每天总计 1,000,000 次查询
  • 在短时间内创建了 100,000 个事件
  • 在短时间内创建了 60 个日历
  • 在短时间内向外部客人发出 10,000 次邀请
  • 在短时间内通过给客人发送电子邮件"功能发送了 2,000 封电子邮件
  • 在短时间内 750 个日历股

我建议你插入更少的事件.

I suggest that you insert fewer events.

这篇关于Google 日历 API(超出日历使用限制)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆