使用Javascript客户端库从Chrome扩展中使用Calendar api v3 [英] Use Javascript Client Library to use Calendar api v3 from chrome extension

查看:155
本文介绍了使用Javascript客户端库从Chrome扩展中使用Calendar api v3的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图创建一个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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆