I
I
Ivan Vasilich2018-11-19 14:42:09
PHP
Ivan Vasilich, 2018-11-19 14:42:09

How to get a Token for the yandex.disk application?

Good afternoon/evening.
We need to write an application in php to manipulate files on yandex disk. api I found how to use. Can't figure out how to get the token.
It is written that you need to send a POST request and get this token in the header. but I don’t understand where to send and what to send.
I registered the application and received the secret and id. and also phar with api yandex is also available.
Tell me what to do next and how to add a request?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pcholl, 2020-11-15
@Pcholl

Try sending a request like

https://oauth.yandex.ru/authorize?response_type=token&client_id=<32-значный ID, выданный при регистрации приложения>

Then, in the page that appears, click on the "Allow" button for the application to access Yandex Disk, a token should be displayed in response.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question