Appdata does not work in iGoogle?

31 views
Skip to first unread message

Evgeny Bogdanov

unread,
Sep 27, 2011, 10:08:05 AM9/27/11
to opensocial...@googlegroups.com
I tried a very simple gadget and always get an "internalError" for appdata request.
[{
 "id": "appdata.get",
 "error": {
  "message": "internalError",
  "code": 500
 }
}]

Does anyone know what the problem is? osapi.people.get seems to be working.
the gadget code is below:
<?xml version="1.0" encoding="UTF-8"?>
<Module>
  <ModulePrefs title="Appdata test" 
                author_email="" 
                author="Evgeny Bogdanov">
    <Require feature="opensocial-0.9"/>
    <Require feature="osapi" />
  </ModulePrefs>
  <Content type="html" view="default,canvas,home,profile"><![CDATA[

<style type="text/css">
</style>

<button onclick="changeUrl();" >Update</button>
<button onclick="removeUrl();" >Get</button>

<script type="text/javascript">
var changeUrl = function() {
  osapi.appdata.update({userId: "@owner", data: {url: "Evgeny"}}).execute(function(res) {
    console.log(res)
  });
}
var removeUrl = function() {

  osapi.appdata.get({userId: "@owner"}).execute(function(res) {
    console.log(res)
  });
}
</script>


  ]]></Content>
</Module>

rbaxter85

unread,
Sep 27, 2011, 8:29:32 PM9/27/11
to OpenSocial Community
I'm not really sure, but it may be better to post this question on the
iGoogle google group.

On Sep 27, 10:08 am, Evgeny Bogdanov <evgeny.bogda...@gmail.com>
wrote:

Mark W.

unread,
Nov 30, 2011, 10:37:23 AM11/30/11
to opensocial...@googlegroups.com, plin...@google.com
Let's check with Paul as well.

Evgeny Bogdanov

unread,
Dec 1, 2011, 5:12:15 AM12/1/11
to opensocial...@googlegroups.com, plin...@google.com
Mark,

OpenSocial functionality will be removed from iGoogle in favor of Google+.
Here is the discusion and Paul's answer on it:
https://groups.google.com/forum/#!searchin/opensocial-and-gadgets-spec/igoogle/opensocial-and-gadgets-spec/EYckHfZ1mpo/wnQEE18SjGsJ
Reply all
Reply to author
Forward
0 new messages