小编ANd*_*mes的帖子

Google javascript API库 - 日历观看通知

我正在尝试使用JS客户端库订阅日历事件通知,如下所示:

gapi.client.load('calendar', 'v3', function () {
            var request = gapi.client.calendar.events.watch({
                'calendarId': cl.gCalendarID,
                'id': unid,
                'type': "web_hook",
                'address': {my url here}
            });
            request.execute(function (resp) {
                console.log(resp);
            });
        });
Run Code Online (Sandbox Code Playgroud)

但是我只是继续得到400回复,并且没有任何帮助Entity.Resource"

在我得到的响应的数据对象中 Domain:global, Message: Entity.Resource, reason: Required"

我已经通过oauth2进行了身份验证,并且我已经授予了访问我的Google帐户的权限,并且我可以成功检索日历列表,并且我正在从他们的日历中检索事件,但这种订阅手表的方法不起作用?请帮助我在Google上找不到任何关于此的内容.

javascript calendar google-api

4
推荐指数
1
解决办法
1074
查看次数

标签 统计

calendar ×1

google-api ×1

javascript ×1