Chris, it seems we misunderstood together about the "end points" :).
Actually this is what I have
<script type="text/javascript">
function sendNotification() {
var params = [];
params[opensocial.Message.Field.TITLE] = "title";
params[opensocial.Message.Field.TYPE] =
opensocial.Message.Type.NOTIFICATION;
var message = opensocial.newMessage("body", params);
var recipient = opensocial.IdSpec.PersonId.OWNER;
opensocial.requestSendMessage(recipient, message,
callback);
};
function callback(data) {
if (data.hadError()) {
alert("There was a problem:" + data.getErrorCode());
} else {
alert("Ok");
}
};
</script>
and in my container.js I've added
init: function() {
...
gadgets.rpc.register('requestSendMessage',
this.requestSendMessage);
},
and now I need a little help to understand what should I do next, in
my method
requestSendMessage: function() {
}
this is what I need..
Thanks in advance.
On Dec 1, 7:12 pm, Chris Chabot <[email protected]> wrote:
> The end point exists, at least if you're using the trunk versions of shindig
> and partuza which support OpenSocial 0.9.
>
> The released versions (release 1.0 which supports OpenSocial 0.8) do have a
> implementation of the 'old' messages end point in shindig, however Partuza
> didn't support messages back then, hence the need for the trunk versions of
> both.
>
> Do note that just having support for the RESTful end-point and having the
> stubs implemented doesn't mean it has to work from a gadget, if it doesn't
> that refer to my first reply on where to start looking into why it wouldn't
> work
>
>
>
> On Tue, Dec 1, 2009 at 4:03 PM, Mel Morrow <[email protected]> wrote:
> > thanks guys!
>
> > yeah Chris, I've spent a week or 2 digging the code, debugging and
> > trying to find the end point :)
>
> > but with no success :(
>
> > dear Vinod, these links appear to be broken...
>
> > On Dec 1, 6:51 pm, Vinod Shetye <[email protected]> wrote:
> > > Check out the OpenSocial Javascript API's working code fromhttp://
> >www.easycodingclub.com/<
> >http://www.easycodingclub.com/opensocial-tutorials/opensocial-applica..
> > .>below
> > > site URL. Given URL will solve your problem for sending activity
> > > feeds, making request to server, sending user information to the server,
> > > reading data from XML file, profile view with the help of OS Template,
> > etc.http://www.easycodingclub.com/opensocial-tutorials/opensocial-applica.
> > ..
>
> > > On Tue, Dec 1, 2009 at 7:04 PM, Mel Morrow <[email protected]> wrote:
> > > > Hey there.
>
> > > > I have some problems here :( ...
>
> > > > Could anyone explain me what do I need to do in my Partuza side
> > > > implentation of requestSendMessage function.. I've registered in
> > > > container.js new service (gadgets.rpc.register('requestSendMessage',
> > > > this.requestSendMessage); ) in such way I got rid off such a warning
> > > > "Unknown RPC service: requestSendMessage".
>
> > > > But now i don't know what exactly should I do... It seems I'm getting
> > > > confused in gadget-shindig-partuza interaction flow.
>
> > > > Any help is very appreciated.
>
> > > > --
>
> > > > You received this message because you are subscribed to the Google
> > Groups
> > > > "Implementing OpenSocial Containers" group.
> > > > To post to this group, send email to
> > [email protected]
> > > > .
> > > > To unsubscribe from this group, send email to
> > > > [email protected]<opensocial-container%2Bun
> > > > [email protected]><opensocial-container%2Bun
> > [email protected]>
> > > > .
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/opensocial-container?hl=en.
>
> > --
>
> > You received this message because you are subscribed to the Google Groups
> > "Implementing OpenSocial Containers" group.
> > To post to this group, send email to [email protected]
> > .
> > To unsubscribe from this group, send email to
> > [email protected]<opensocial-container%2Bun
> > [email protected]>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/opensocial-container?hl=en.
--
You received this message because you are subscribed to the Google Groups
"Implementing OpenSocial Containers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/opensocial-container?hl=en.