When I try to login using this simple code:
public static void main(String[] args) {
RobinhoodApi api = null;
try {
api = new RobinhoodApi(<USER>,<PASSWORD>);
} catch (RobinhoodApiException e) {
e.printStackTrace();
}
System.out.println(api.getAccountData());
}
I get this error:
com.ampro.robinhood.throwables.RobinhoodApiException: Failed to log user in: no token
at com.ampro.robinhood.RobinhoodApi.<init>(RobinhoodApi.java:105)
at com.ampro.robinhood.Test.main(Test.java:11)
Exception in thread "main" java.lang.NullPointerException
at com.ampro.robinhood.Test.main(Test.java:17)
When I try to login using this simple code:
I get this error: