O
O
Olga9312019-09-09 10:36:25
API
Olga931, 2019-09-09 10:36:25

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
5d76003d2270d122583826.jpeg
. How to fix the error and get a token?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Andrew, 2019-09-09
@deepblack

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.

C
cgwic, 2019-09-09
@cgwic

Olga, install Postman and practice with it
Since the next question will be about parameters
Or just look at the examples

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question