Chrome扩展程序:与Google Calendar API集成

时间:2018-03-22 11:29:47

标签: google-chrome-extension google-calendar-api

我正在开发Chrome扩展程序,需要调用Google Calendar API。我从这里开始使用快速入门教程(对于javascript):

https://developers.google.com/calendar/quickstart/js

它有效。但是当我将所有代码复制并粘贴到扩展程序html(官方教程中的popup.html)时,它不起作用。我无法在弹出页面中看到“授权”按钮。

我怀疑输入的“授权JavaScript来源”导致错误(现在我输入了“http://localhost:8000”)。或者我是否在制作Chrome扩展程序时使用了错误的示例?谢谢!

0 个答案:

没有答案