【发布时间】:2015-11-19 17:42:41
【问题描述】:
对于带有模块首选项的 html 类型的日历侧边栏小工具,
<Require feature="opensocial-0.9"/>
<Require feature="osapi" />
对 osapi.http 的调用都成功发送,这会导致 404 响应:
osapi.people.get({userId:'@viewer'}).execute(function(response) {
console.log(response);
});
这包含在与 osapi.http 调用相同的 RPC 端点的 POST 中,并且 post 对象符合预期:
[{"method":"people.get","id":"people.get","params":{"userId":"@viewer","groupId":"@self"}}]
当小工具需要 opensocial-0.8 或 opensocial-0.9 时,osapi.http 或 osapi.people 的行为没有区别。我假设此调用不需要身份验证令牌 - 这是真的吗?谷歌日历是否支持 osapi.people?
【问题讨论】:
标签: google-calendar-api google-oauth google-gadget opensocial