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>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"OpenSocial API Definition" 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-api?hl=en
-~----------~----~----~----~------~----~------~--~---