And did you actually implement the requestSendMessage in your container? And is that function being called?
& Sorry for the troubles you're having with this, the REST interface of messages has been working in shindig for a long time already (both in 1.0 and the new expanded interface in 1.1), however the javascript side has never seen a lot of use because all contributing containers are concerned about spam, and decided against implementing it as a service. As a solution the thought is that by making it a container mediated action, so that the container can pop up a dialog confirming that the user does indeed want to send that message, that way an app can't just spam in the background and the user can validate that the message content is appropriate. On Fri, Sep 18, 2009 at 1:28 PM, Fayland Lam <[email protected]> wrote: > I did. but it still shows the same error 'NOT_IMPLEMENTED'. > > anyway, I'll check more next Monday. thanks for your help. > > Thanks. > > On Fri, Sep 18, 2009 at 7:00 PM, Chris Chabot <[email protected]> wrote: > > That patch changes requestSendMessage to relay the call to the container, > so > > on the container side you could register a rpc event listener using: > > gadgets.rpc.register('requestSendMessage', this.requestSendMessage); > > > > And then take it from there. > > > > > > On Fri, Sep 18, 2009 at 10:14 AM, Fayland Lam <[email protected]> wrote: > > > >> well, it seems it always return NOT_IMPLEMENTED with > >> shindig-1.0-incubating-php, right? > >> > >> I see the opensocial.js, the code is still > >> > >> opensocial.Container.prototype.requestSendMessage = function(recipients, > >> message, opt_callback, opt_params) { > >> if (opt_callback) { > >> window.setTimeout(function() { > >> opt_callback(new opensocial.ResponseItem( > >> null, null, opensocial.ResponseItem.Error.NOT_IMPLEMENTED, > null)); > >> }, 0); > >> } > >> }; > >> > >> so what should I do towards it? I applied the patch of > >> > http://mail-archives.apache.org/mod_mbox/incubator-shindig-commits/200906.mbox/%[email protected]%3e > >> and it seems not working. > >> > >> so what's the suggestion? use the trunk code? > >> > >> Thanks. > >> > >> -- > >> Fayland Lam // http://www.fayland.org/ > >> > >> > > > > > > -- > Fayland Lam // http://www.fayland.org/ >

