I’d like to know if an user have purchased my item.
This code worked well
As i understand this code doesn’t works anymore. I found another way to do this :
$url = "https://api.envato.com/v3/market/author/sale?code=".$productCode; $curl = curl_init($url); $header = ; $header = 'Authorization: Bearer '.$personalKey; $header = 'User-Agent: TEST'; curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); curl_setopt($curl, CURLOPT_HTTPHEADER,$header); $content = curl_exec($curl); curl_close($curl); $content = json_decode($content); var_dump($content);
The problem is this code return null
Thanx for your help