Navigation

    SmartAPI Forum
    • Register
    • Login
    • Search
    • Categories
    • Popular
    • Groups
    • FAQs
    • API Docs
    1. Home
    2. amrutjk
    3. Best
    A
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    Best posts made by amrutjk

    • Connect/Login using TOTP

      I am struggling with the new TOTP ...unable to connect. Can someone help with basic code ?

      SmartApi connect = new SmartApi(api_key, JWTToken, RefreshToken);
      
                 OutputBaseClass obj = new OutputBaseClass();
      
                 //Login by client code and password......... old code
                 obj = connect.GenerateSession(Client_code, Password);
                 //Login by client code and password .....new code ?? how
                 //obj = connect.GenerateSession(Client_code, Password, totp);
      

      how to get the totp and pass it to GenerateSession ?

      posted in C#/.Net SDK
      A
      amrutjk