Answer the question
In order to leave comments, you need to log in
How to get Yandex oauth token in php?
It seems like they have instructions, but still have questions. Ideally, I would like to receive some kind of instruction from the category of "just do it like this."
I make a curl request like this:
$ch = curl_init("https://oauth.yandex.ru/authorize?response_type=token&client_id=863...09b&login_hint=nastya97core&force_confirm=no");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
//curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
$res = curl_exec($ch);
curl_close($ch);
p($res);
Found. Redirecting to https://passport.yandex.ru/auth?retpath=https%3A%2F%2Foauth.yandex.ru%2Fauthorize%3Fresponse....
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question