Hey Ajay,

requestShareApp is what we would call 'container mediated', that means that
the requestShareApp call triggers (via rpc) the container to take care of
the details. The reason for that is that you don't want apps to be able to
spam without any user intervention and consent, plus a container is likely
to want to put some UI arround it to do things like selecting people to
share it with, maybe the possibility to add a custom message, etc.

While I haven't had any experience implementing it (& no partuza doesn't
support it yet), I presume it's as simple as doing a (in the containers
javascript):
gadgets.rpc.register('requestShareApp', this.requestShareApp);

Looking at
(shindig/features/src/main/javascript/features/opensocial-jsonrpc/)
jsonrpccontainer.js it looks like the params the requestShareApp rpc
function gets parsed are:
        null,
        callbackId,
        recipientIds,
        body

Hope that helps & good luck!

   -- Chris

On Tue, Apr 7, 2009 at 8:22 AM, ajay singh
<ajay.si...@tekritisoftware.com>wrote:

> Hi All
>
> How can I implement requestShareApp, in my container. when I tried it says
> -Unknown RPC service: shindig.requestShareApp
> Has Partuza implemented it.
>
> Can any one help me please.
>
> Thanks
>  Ajay
>
>

Reply via email to