Answer the question
In order to leave comments, you need to log in
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;
headers: {
'Authorization': 'Bearer ' + accessToken
}
headers: {
'Authorization': 'OAuth ' + accessToken
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question