Use Javascript Client Library to use Calendar api v3 from chrome extension

我的未来我决定 提交于 2019-12-25 02:29:18

问题


I am trying to create a chrome extension that can add Google calendar events to a person's google Calendar (create one appointment for irregular reoccuring dates).

To do this I am using oauth 2.0 and I would like to use the javascript Client library to make the required calls.

Whenever I try to use the gapi object, I will receive the error that the object is undefined.

Does anyone have a good example on how to use the javascript client library in a chrome extension, or a better way to do this?

Thanks in advance!


回答1:


What about using chrome.identity https://developer.chrome.com/apps/identity



来源:https://stackoverflow.com/questions/21932269/use-javascript-client-library-to-use-calendar-api-v3-from-chrome-extension

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!