加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 站长学院 > PHP教程 > 正文

php – (403)将事件添加到日历时未配置访问权限

发布时间:2020-12-13 22:09:09 所属栏目:PHP教程 来源:网络整理
导读:今天我在向日历添加新事件时开始出现此错误: Fatal error: Uncaught exception 'apiServiceException' with message 'Error calling POST https://www.googleapis.com/calendar/v3/calendars/[cal-id]@group.calendar.google.com/events?alt=jsonkey=[dev-k
今天我在向日历添加新事件时开始出现此错误:

Fatal error: Uncaught exception 'apiServiceException' with message
 'Error calling POST https://www.googleapis.com/calendar/v3/
calendars/[cal-id]@group.calendar.google.com/events?alt=json&key=[dev-key]:
 (403) Access Not Configured' in /[...]/src/io/apiREST.php:86
 Stack trace: #0 /[...]/src/io/apiREST.php(56): apiREST::decodeHttpResponse(Object(apiHttpRequest)) 
 #1 /[...]/src/service/apiServiceResource.php(148): apiREST::execute(Object(apiServiceRequest)) #2 /[...]/src/contrib/apiCalendarService.php(472): 
apiServiceResource->__call('insert',Array) #3 /[...]/index.php(160): EventsServiceResource->insert('[cal-id-part]...',Object(Ev in /[...]/src/io/apiREST.php on line 86

到目前为止它完美地工作,我没有改变任何代码.

解决方法

我在使用PHP访问Google Analytics数据时遇到了类似的问题.我通过确保在我的API控制台中为我的项目启用了Analytics服务来修复它: https://code.google.com/apis/console/.

您可能必须打开日历服务.如果有人对翻译服务有疑问,请参阅以下链接以获取进一步说明:

Translation api has stopped working

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读