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

0 like 0 dislike
5 views
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 = "https://api.content.market.yandex.ru/v1/shop/{302413}/opinion.json";$headers = array("Host: api.content.market.yandex.ru","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 | 5 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.
by

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
0 comments
33,631 users