使用Javascript客户端库从Chrome扩展中使用Calendar api v3 [英] Use Javascript Client Library to use Calendar api v3 from chrome extension
问题描述
我试图创建一个Chrome扩展程序,可以将Google日历活动添加到个人的Google日历中(为不规则的重复日期日期创建一个约会)。
要做到这一点我正在使用oauth 2.0,并且我想使用javascript客户端库进行必要的调用。
每当我尝试使用gapi对象时,都会收到错误该对象是未定义的。
有没有人有一个很好的例子来说明如何在Chrome扩展中使用JavaScript客户端库,或者更好的方法来做到这一点?
预先感谢! 使用chrome.identity 怎么样? https://developer.chrome.com/apps/identity
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!
What about using chrome.identity https://developer.chrome.com/apps/identity
这篇关于使用Javascript客户端库从Chrome扩展中使用Calendar api v3的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!