7 messages in com.googlegroups.opensocial-apiRE: [OpenSocial] Re: How to use the m...| From | Sent On | Attachments |
|---|---|---|
| clau...@gmail.com | 22 Jan 2008 16:38 | |
| Aakash Bapna | 23 Jan 2008 08:46 | |
| Reinoud Elhorst | 23 Jan 2008 09:01 | |
| da....@boreham.org | 23 Jan 2008 17:13 | |
| da....@boreham.org | 24 Jan 2008 14:02 | |
| Aakash Bapna | 27 Jan 2008 12:43 | |
| Arne Roomann-Kurrik (Google) | 28 Jan 2008 10:30 |
| Subject: | RE: [OpenSocial] Re: How to use the method makeRequest?![]() |
|---|---|
| From: | Aakash Bapna (aak...@live.com) |
| Date: | 01/27/2008 12:43:09 PM |
| List: | com.googlegroups.opensocial-api |
hi i am using a code like yours. but the opensocial_viewer_id mentioned here
http://groups.google.com/group/opensocial/web/content-fetching is missing.
Moreover the value of opensocial_ownerid does not reconcile with the value
given by container data function person.getID();
if anyone wants to check the results of the new opensocial.makeRequest function
you can try this test app- http://enext.biz/aks/test.xml
it makes a remote request using Signed AuthenticationType.
AuthenticationType.AUTHENTICATED does not work yet..
Thanks ~@@k@sh http://aakash-bapna.blogspot.com
Date: Wed, 23 Jan 2008 17:13:52 -0800> Subject: [OpenSocial] Re: How to use the
method makeRequest?> From: da....@boreham.org> To:
open...@googlegroups.com> > > > See below. If you run this in the Orkut
sandbox it will call your> server.> Good luck with validating the signing
though, the public key they're> using seems to be a big secret.> > > <?xml
version="1.0" encoding="UTF-8" ?>> <Module>> <ModulePrefs title="Remote Call
Demo">> <Require feature="opensocial-0.6"/>> </ModulePrefs>> <Content
type="html">> > <![CDATA[> > <script type="text/javascript">> > function
doRemoteCall() {> var args = {};>
args[opensocial.ContentRequestParameters.AUTHENTICATION] =>
opensocial.ContentRequestParameters.AuthenticationType.SIGNED;> /*
args[opensocial.ContentRequestParameters.CONTENT_TYPE] =>
opensocial.ContentRequestParameters.ContentType.HTML; */>
args[opensocial.ContentRequestParameters.METHOD] =>
opensocial.ContentRequestParameters.MethodType.GET;>
document.getElementById('message').innerHTML = "Making the call";>
opensocial.makeRequest("http://<your server dns name>OpenSocialTest/>
TestServlet",onRemoteCallComplete,args);> }> > function
onRemoteCallComplete(result) {> var html = "Got this back: " + result;>
document.getElementById('message').innerHTML = html;> }> > > > >
_IG_RegisterOnloadHandler(doRemoteCall);> > </script>> ]]>> </Content>>
</Module>> _________________________________________________________________
Climb to the top of the charts! Play the word scramble challenge with star
power.
http://club.live.com/star_shuffle.aspx?icid=starshuffle_wlmailtextlink_jan




