I'm trying the sample code given:
`const RobinHood = require('robinhood-api');
const robinhood = new RobinHood();
(async () => {
try{
let loginResult = await robinhood.login({ username:'email@test.com', password:'mycoolpassword' });
let myUserData = await robinhood.getUserData();
console.log(myUserData);
}catch(e){
console.log('Oh noes! Login probably failed!', e);
}
})();`
Of course I am actually changing out email@test.com and mycoolpassword with my actual credentials, but I'm getting the error APIError: API Response Error. | Request routing error - unsafe method
I'm trying the sample code given:
`const RobinHood = require('robinhood-api');
const robinhood = new RobinHood();
(async () => {
try{
let loginResult = await robinhood.login({ username:'email@test.com', password:'mycoolpassword' });
}catch(e){
console.log('Oh noes! Login probably failed!', e);
}
})();`
Of course I am actually changing out email@test.com and mycoolpassword with my actual credentials, but I'm getting the error APIError: API Response Error. | Request routing error - unsafe method