Hi all,
I was able to access the AppData Service by doing the following:
> osapi.appdata.update({
> appId: "UP_" + gadget.id,
> userId: "@me",
> groupId:"@self",
> data: name-value-pairs-of-user-preferences}
>
> ).execute(shindig.AppDataBasedUserPrefStore.prototype.savePrefsResponseHandler);
The biggest problem for me was to identify the cause of the TokenError
mentioned in one of my last mails which was based upon
"shindig.auth.getSecurityToken()" returning "-1:-1:*::*:0:default"
(probably uninitialized)
By calling:
> shindig.auth.updateSecurityToken("john.doe:john.doe:appid:cont:url:0:default");
(the Token used for debugging in shindig-container.js), I was finally
able to perform my request.
However, I am wondering why the Token returns "-1" in the first place
and where I should configure the token properly.
-Peter