How to connect reviews of Yandex.Market on the website?

Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
API of Yandex says that the need to obtain the authorization key and then insert it into an executable script. The script took there.

<?$url = "{302413}/opinion.json";$headers = array("Host:","Accept: */*","Authorization: {Ключ авторизации}" // ключ подставлю верно, проверил несколько раз);$ch = curl_init();curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);curl_setopt($ch, CURLOPT_URL, $url);curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);$data = curl_exec($ch);curl_close($ch);?>

but for some reason does not work =( Says {"errors":["Authorization failed: request from unknown IP address 2a03:6f00:1::5c35:72c9 or invalid key or key or suspended or key missing\
by | 11 views

1 Answer

0 like 0 dislike
Figured out... just need to write { } these brackets when you insert the key and ID of the store.

Related questions

0 like 0 dislike
7 answers
0 like 0 dislike
1 answer
0 like 0 dislike
2 answers
asked May 4, 2019 by SpideR-KOSS
110,608 questions
257,186 answers
35,457 users