Please update the PHP API for TOTP and share the example for PHP Smart API Because, presently this not working with PHP Smart API
Biswajit
@msg2biswajit
Best posts made by msg2biswajit
-
RE: Guide to secure your SmartAPI Account with two factor authentication
Latest posts made by msg2biswajit
-
RE: Guide to secure your SmartAPI Account with two factor authentication
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.
-
RE: Guide to secure your SmartAPI Account with two factor authentication
@msg2biswajit : I have updated the PHP Smart API function as follows
public static function GenerateSession($clientcode, $password, $totp)and
$api_parameter = ['clientcode'=>$clientcode,'password'=>$password, 'totp'=>$totp];
now it's working. But, the problem is that I need to update that $totp value manually on every 30 Second, so how can I use that for continuously for whole day ? Please provide the solution
-
RE: Guide to secure your SmartAPI Account with two factor authentication
Please update the PHP API for TOTP and share the example for PHP Smart API Because, presently this not working with PHP Smart API
-
RE: GetCandleData function of PHP API not return historical data for MCX - commodity exchange
@msg2biswajit : It is showing this message without data
{"status":"success","http_code":200,"http_error":"","response_data":{"status":true,"message":"SUCCESS","errorcode":"","data":null}}
Please help.
-
GetCandleData function of PHP API not return historical data for MCX - commodity exchange
Hi Admin, When I am trying to fetch the MCX historical data with GetCandleData function of PHP API, it is not returning data but, same code is working fine for NSE and BSE.
Please help so that I can fetch MCX instrument's historical data with GetCandleData function using PHP API.
Thanks.