K
K
Khurshed Abdujalil2018-06-27 07:39:28
Yandex
Khurshed Abdujalil, 2018-06-27 07:39:28

How to delete or update Yandex token?

I'm trying to update the token like this:

$url = "https://oauth.yandex.ru/authorize?response_type=code&client_id=" . $client_id . "&client_secret=" . $client_secret . "&grant_type=refresh_token&refresh_token=" . $yandex_refresh_token;
header("Location: " . $url);

Removing a token:
$url = "https://oauth.yandex.ru/revoke_token?access_token=".$token."&client_id=" . $client_id . "&client_secret=".$client_secret;
        header("Location: " . $url);

But something doesn't work

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question