Making calls to API via proxy
Hey,
I found out I can not make any calls to api server via Javascript due to browser limitations.
I was told I can do that via simple php code. So I set up a PHP page who make the call to the API server.
Now I have this code on a page that invokes the serivce:
precode
var myAPI = new Tiggr.RestService({
'url': 'http://api.server.com/ads/apisearch',
'dataType': 'xml',
'type': 'get',
});
/code/pre
I chagned the url to 'myProxy.php?page=http://api.server.com/ads/apisearch'
How do I pass the data (requested parameters)? Where can I find the JS code for that?
Thanks,