I have installed YOURLS API and its working fine except one problem. Whatever URL I am passing to shorten, its first executing that URL. One of the links is un-subscribe link clicking on which instantly it un-subscribe the member from our mailer. I am using passwordless API call with security token and I am calling yourls-api.php
file by file_get_contents
function. Here is the code snippet I have written:
$url = urlencode($url);
$api_url = 'http://mydomain.com/yourls/yourls-api.php?signature=593642y63x&action=shorturl&format=json&url='.$url;
$arr_output = json_decode(file_get_contents($api_url), true);
Can anybody tell me how can I stop YOURLS API to not execute URL before shortening?