Navigation

    SmartAPI Forum
    • Register
    • Login
    • Search
    • Categories
    • Popular
    • Groups
    • FAQs
    • API Docs

    Token or QR value to connect with Smart API Python ?

    Python SDK
    1
    2
    7
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • K
      kamal487 last edited by

      What value we have to pass for Token ?

      api_key = 'Your Api Key'
      username = 'Your client code'
      pwd = 'Your pin'
      smartApi = SmartConnect(api_key)
      try:
      token = "Your QR value"
      totp = pyotp.TOTP(token).now()
      except Exception as e:
      logger.error("Invalid Token: The provided token is not valid.")
      raise e

      K 1 Reply Last reply Reply Quote 0
      • K
        kamal487 @kamal487 last edited by

        @kamal487 git it we have to use QR Code number , closing the thread.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post