【问题标题】:OpenSocial API stopped working in Google Calendar GadgetOpenSocial API 在 Google 日历小工具中停止工作
【发布时间】:2013-01-14 18:09:50
【问题描述】:

我发现我们在日历边栏小工具中使用的 opensocial API 停止工作。它在星期五仍然正常工作。我们使用 opensocial 来存储和获取一些键值数据,今天我们每次尝试读取任何内容时都会收到错误代码:badRequest(没有错误消息)。

这是我们正在使用的代码示例:

var idspec = opensocial.newIdSpec({ "userId" : "VIEWER", "groupId" : "SELF" });
var req = opensocial.newDataRequest();
req.add(req.newFetchPersonAppDataRequest(idspec, "mydata"), "get_data");
req.send(function(data){console.log(data)});

这是我们从谷歌得到的回复:

errorMessage_: undefined
  globalError_: true
  responseItems_: Object
  get_data: opensocial.ResponseItem
    data_: null
    errorCode_: "badRequest"
    errorMessage_: undefined

代码与此处描述的非常相似:http://docs.opensocial.org/display/OSREF/App+Data

有没有人遇到过类似的问题,或者知道如何解决?我们正在我们的生产系统上使用它,该系统从早上开始就关闭了。任何帮助,将不胜感激。

【问题讨论】:

  • 我在导入谷歌电子邮件联系人时也面临这个问题。 api似乎不再工作了?有人发现问题了吗?

标签: google-calendar-api opensocial google-gadget google-oauth


【解决方案1】:

API 已被弃用。为了解决这个问题,我更改了使用 Google oAuth 2.0 导入 Google 联系人的实现,并且可以正常工作。

https://developers.google.com/igoogle/docs/opensocial_rest_rpc(已弃用)。

如需使用 Google oAuth 2.0,请访问以下链接:-

https://developers.google.com/accounts/docs/OAuth2Login

【讨论】:

    猜你喜欢
    • 2015-07-26
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-02-26
    • 2013-06-30
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多