oO.*_*oO. 3 php google-calendar-api google-api oauth-2.0
今天我在向日历添加新事件时开始出现此错误:
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
Run Code Online (Sandbox Code Playgroud)
到目前为止它完美地工作,我没有改变任何代码.
我在使用PHP访问Google Analytics数据时遇到了类似的问题.我通过确保在我的API控制台中为我的项目启用了Google Analytics服务来修复它:https://code.google.com/apis/console/.
您可能必须打开日历服务.如果有人对翻译服务有疑问,请参阅以下链接以获取进一步说明:
归档时间: |
|
查看次数: |
4359 次 |
最近记录: |