A
A
Alexander2021-12-22 17:45:59
PHP
Alexander, 2021-12-22 17:45:59

How to give an authorized response to Yandex to a request?

I wrote a code that catches the request, checks for the availability of the product, and if everything is ok, creates an order and returns the order id. Everything works in the test, but Yandex does not accept answers. You need to add authorization to the headers. Judging by the documentation , I should add in the Authorization HTTP header I Authorization: 546df3as346fasd6f2312

add at the beginning but the response is still null and 403. How to give an authorized response? here is the request https://disk.yandex.ru/i/PG4Im1e0g-wBew here is the server response https://disk.yandex.ru/i/skT8uWN1v8CX0g
header ("Authorization: 546df3as346fasd6f2312");


Answer the question

In order to leave comments, you need to log in

2 answer(s)
T
tgarl, 2021-12-22
@tgarl

why "headers" and not "header"?

A
Anton Shamanov, 2021-12-22
@SilenceOfWinter

this is a Yandex request to the store, but you need the opposite

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question