@admin
Getting error as invliad totp. PFB code snippet
Code :
SmartConnect smartConnect = new SmartConnect();
smartConnect.setApiKey("<API KEY>");
GoogleAuthenticator gAuth = new GoogleAuthenticator();
String totpcode = String.valueOf(gAuth.getTotpPassword("<secret key>"));
System.out.println(" TOTP : "+totpcode);
User user = smartConnect.generateSession("<clientCode>","<PIN>",totpcode);
smartConnect.setAccessToken(user.getAccessToken());
console output :
{"data":null,"message":"Invalid totp","errorcode":"AB1050","status":false}JSONObject["data"] is not a JSONObject (class org.json.JSONObject$Null : null).