V
V
Vladimir Sobolev2018-11-15 20:28:09
OAuth
Vladimir Sobolev, 2018-11-15 20:28:09

How to make a request to the API with authorization by token in HEADER without signing with a secret key?

On almost all platforms that I know where there is oAuth authorization, you can make requests to the API indicating the token in the header or in the request itself, here are examples of the most common methods:
Vkontakte

url = 'https://api.vk.com/method/friends.getOnline?v=5.52&access_token=' + accessToken;

dropbox
headers: {
    'Authorization': 'Bearer ' + accessToken
}

Twitch
headers: {
    'Authorization': 'OAuth ' + accessToken
}

etc. Do Odnoklassniki have anything similar? Without the use of additional parameters (secret keys, application ids, signatures, etc.), the token has already been received during the authorization process of the desired application. The Graph API now only works with groups, which is clearly not enough.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Egorichev, 2018-11-19
@simpel

OK doesn't have that.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question