Answer the question
In order to leave comments, you need to log in
An error occurred while sending a post request to get a token. How to fix?
Sending a request:
var request = require('request');
request.post('https://oauth.yandex.ru/token', {
'grant_type': 'authorization_code',
'code': req.query.code,
'client_id': 'c48956d9f59442bab960f373a6ca5ba2',
'client_secret': '9e46f2c8fefb4f55bf63b06066431c4d',
}, function(err, httpResponse, body) {
console.log(body);
});
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