I am using OWL SEND api php in laravel to get my subscriptions list but the api is giving me this message in response instead of subscriptions list.
<html><body>You are being <a href=\"https:\/\/http://www.sendowl.com\/login\">redirected<\/a>.<\/body><\/html>
Here is my curl code in PHP
$apikey = OWL_API_KEY;
$apisecret = OWL_API_SECRET;
$url = "http://ift.tt/241XrAS";
$ch = curl_init();
curl_setopt($ch,CURLOPT_URL,$url);
curl_setopt($ch,CURLOPT_HTTPHEADER,array(
'Accept:application/json, text/javascript, */*; q=0.01',
'Content-Type: application/json',
));
curl_setopt($ch,CURLOPT_RETURNTRANSFER,true);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
curl_setopt($ch,CURLOPT_HEADER, false);
$output=curl_exec($ch);
curl_close($ch);
but it is not giving me the subscriptions list.
Can some one please tell me what i am doing wrong here. it will be really great i have been working on this from one day but still the issue has not been solved
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire