Answer the question
In order to leave comments, you need to log in
How to get access_token, gives 405 error?
I'm going to do authentication on the site through classmates, I'm reading the instructions without PHP yet. Reached the fourth point of receiving a token. When you try to call this line in the browser https://api.ok.ru/oauth/token.do with all the previously received parameters from the previous paragraphs, it gives a 405 error
. How to fix the error and get a token?
Answer the question
In order to leave comments, you need to log in
It is written: Use POST method only!
This means that data must be sent to this endpoint with a POST request,
it is strange that you did not see this in the documentation.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question