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

查看:82
本文介绍了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个日历共享
  • 1,000,000 total queries per day
  • 100,000 created events in a short period of time
  • 60 calendars created in a short period of time
  • 10,000 invites to external guests in a short period of time
  • 2,000 emails sent through 'Email guests' feature in a short period of time
  • 750 calendar shares in a short period of time

我建议您插入较少的事件.

I suggest that you insert fewer events.

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

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