Robinhood javascript api登录
我正在使用下面的代码从robinhood获取挑战ID,然后使用控制台键入发送到我手机的短信验证。这一切似乎工作正常,但我似乎找不到auth令牌,以便我可以使用nodejs登录到robinhood的任何其他人,这对我有帮助吗Robinhood javascript api登录,javascript,node.js,authentication,Javascript,Node.js,Authentication,我正在使用下面的代码从robinhood获取挑战ID,然后使用控制台键入发送到我手机的短信验证。这一切似乎工作正常,但我似乎找不到auth令牌,以便我可以使用nodejs登录到robinhood的任何其他人,这对我有帮助吗 console.log('The challenge ID: ' + JSON.stringify(httpResponse.body.challenge.id)), theID = JSON.stringify(httpResponse.bo
console.log('The challenge ID: ' + JSON.stringify(httpResponse.body.challenge.id)),
theID = JSON.stringify(httpResponse.body.challenge.id)
var readline = require('readline').createInterface({
input: process.stdin,
output: process.stdout
});
readline.question('ENTER SMS VERIFICATION?', number => {
verificationNumber = number
readline.close();
request.post(
'https://api.robinhood.com/challenge/' + theID + '/respond/', {
response: verificationNumber
},
function(error, response, body) {
console.log(response);
}
);
});