Posts Tagged ‘makeRequest’

MySpace / OpenSocial makeRequest examples

I just refactored some of my MySpace code this afternoon, to contact an outside server from an OpenSocial app you have to use the makeRequest call, here’s how my makeRequest wrapper looks like: function makeRequestWrapper(target, callback) { try { var server_base_url = "http://dev-host.yourdomain.com/myspace" var params = { METHOD : ‘GET’, AUTHORIZATION : gadgets.io.AuthorizationType.SIGNED }; gadgets.io.makeRequest(server_base_url [...]