Dear All,
I able to solve PHP API TOTP Login issue and it's working fine for me. Please find the solution as follows for PHP API :
1. Download "GoogleAuthenticator.php" file from https://github.com/PHPGangsta/GoogleAuthenticator
2. Include the file in your login generation PHP file to create the TOTP automatically as follows
require_once("GoogleAuthenticator.php");
3. Now generate the TOTP Automatically as follows :
$authenticator = new PHPGangsta_GoogleAuthenticator();
$secret = "YOUR SECRET CODE, WHICH SHOWS DURING ENABLE TOTP UNDER GOOGLE BAR CODE";
$totp = $authenticator->getCode($secret);
4. Update the PHP API function in "SmartApi.php" file as follows :
public static function GenerateSession($clientcode, $password, $totp)
5. Update the API Parameter in "SmartApi.php" file as follows :
$api_parameter = ['clientcode'=>$clientcode,'password'=>$password,'totp'=>$totp];
Enjoy PHP API and login. Thanks.