doulu4316 2014-06-08 07:52
浏览 43

php:需要有关创建Google日历抓取cron作业的说明

In essence it seems like I don't understand the proper process of authenticating a cron service.

What I am trying to do: I want to collect all events in a google calendar and store it in a mysql database. Sounds simple, but I've spent hours today trying to figure this out and have only gotten confused.

I've tried running

https://www.googleapis.com/calendar/v3/calendars/{CalendarId}/events?key={PublicAPIaccessKey}

hoping that it would work since the calendar is open to read access for everyone.

The response was

"Access Not Configured. Please use Google Developers Console to activate the API for your project."

So I went into Google Developer Console and enabled Google Calendar.

It still reports the same error.

Then I tried using the PHP library for Google OAuth (that is currently working for authenticating my users), but I don't have an access token and this is not a "client", but a "service" I am creating.

I have read up on Google Service Accounts. But I haven't found a resource that explains how I can use this account. It almost seemed as if I needed to set up billing and pay for using this account? Which is out of the question.

I am at a loss on how to proceed. I will continue to google and try to figure it out, but if someone can please explain this for me it would be greatly appreciated.

  • 写回答

1条回答 默认 最新

  • doukan1258 2014-06-15 16:50
    关注
    评论

报告相同问题?

悬赏问题

  • ¥15 R语言Rstudio突然无法启动
  • ¥15 关于#matlab#的问题:提取2个图像的变量作为另外一个图像像元的移动量,计算新的位置创建新的图像并提取第二个图像的变量到新的图像
  • ¥15 改算法,照着压缩包里边,参考其他代码封装的格式 写到main函数里
  • ¥15 用windows做服务的同志有吗
  • ¥60 求一个简单的网页(标签-安全|关键词-上传)
  • ¥35 lstm时间序列共享单车预测,loss值优化,参数优化算法
  • ¥15 Python中的request,如何使用ssr节点,通过代理requests网页。本人在泰国,需要用大陆ip才能玩网页游戏,合法合规。
  • ¥100 为什么这个恒流源电路不能恒流?
  • ¥15 有偿求跨组件数据流路径图
  • ¥15 写一个方法checkPerson,入参实体类Person,出参布尔值