Quote:
Originally Posted by ndoktoruser
Once and again, thank you very much!
I did as you said using curl:
PHP Code:
$curl = curl_init('http://my.page/ajax/api/route/getAbsoluteNodeUrl');
curl_setopt($curl, CURLOPT_POSTFIELDS, 'nodeid=' . $id);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
$url = curl_exec($curl);
curl_close($curl);
It was exactly what I needed.
|
If you are using this in a php script, you can call the api directly in the code also. It'll save an http request and be much faster if you are dealing with several urls. I included a screenshot of the docs for this function.