Hi,
Shindig exposes messaging functionality via the MessageService. This
allows for rpc/rest access to message collections, messages etc. You
can look at JsonDbOpensocialService to see a sample implementation of
these methods (see createMessage(), getMessageCollections(),
getMessages() and more)
For container/JS support there is some code in jsonrpccontainer.js
that supports messaging, however requestSendMessage() is not one of
them. To support this requires overriding that javascript. An
example of that is in hi5container.js:
http://www.hi5networks.com/platform/browser/shindig/trunk/features/src/main/javascript/features/opensocial-current/hi5container.js
On Mar 16, 2009, at 9:23 PM, <pinky.muralid...@wipro.com> <pinky.muralid...@wipro.com
> wrote:
Hi,
I am newbie working in Shindig. I tried to run a example for sending
message using requestSendMessage method. But it showed an error as
"NOTIMPLEMENTED". Does Shindig java supports this functionality?.
Help
will be appreciated.
sample code :
function sendEmail() {
var params = [];
params[opensocial.Message.Field.TITLE]="Hi!";
var body="Hello Shindig";
var message = opensocial.newMessage(body, params);
var recipient = "VIEWER_FRIENDS";
opensocial.requestSendMessage(recipient, message, callback);
}
function callback(data) {
if (data.hadError()) {
alert(data.getErrorCode()); ---->Here it alerts "Not Implemented".
} else {
alert("Ok");
}
}
Thanks in Advance.
Regards,
Pinky Muralidhar.
Please do not print this email unless it is absolutely necessary.
The information contained in this electronic message and any
attachments to this message are intended for the exclusive use of
the addressee(s) and may contain proprietary, confidential or
privileged information. If you are not the intended recipient, you
should not disseminate, distribute or copy this e-mail. Please
notify the sender immediately and destroy all copies of this message
and any attachments.
WARNING: Computer viruses can be transmitted via email. The
recipient should check this email and any attachments for the
presence of viruses. The company accepts no liability for any damage
caused by any virus transmitted by this email.
www.wipro.com