Hi,
I am coding an OpenSocial container using Shindig 2.0.0 for PHP.
In config/container.js, there is the following comment:
// Specifying a binding to "container.listMethods" instructs osapi to
dynamicaly introspect the services
// provided by the container and delay the gadget onLoad handler until
that introspection is
// complete.
// Alternatively a container can directly configure services here
rather than having them
// introspected. Simply list out the available servies and omit
"container.listMethods" to
// avoid the initialization delay caused by gadgets.rpc
// E.g. "gadgets.rpc" : ["activities.requestCreate",
"messages.requestSend", "requestShareApp", "requestPermission"]
However, these settings are not applied.
I changed the "osapi.services" setting in container.js as follows:
"osapi.services" : {
"gadgets.rpc" : ["requestShareApp"],
"http://%host%/social/rpc" : ["people.get"]
},
Corresponding code in the rendered gadget is as follows:
"osapi.services":{"gadgets.rpc":["container.listMethods"],"http:\/\/%host%\/rpc":...
It seem be ignored. Is there anything wrong?
Thanks
Kazuki