Navigation

    SmartAPI Forum
    • Register
    • Login
    • Search
    • Categories
    • Popular
    • Groups
    • FAQs
    • API Docs
    1. Home
    2. Hemanand
    3. Posts
    H
    • Profile
    • Following 0
    • Followers 0
    • Topics 4
    • Posts 5
    • Best 0
    • Groups 0

    Posts made by Hemanand

    • RE: Unable to login: stuck at Enter Pin

      Same for my accounts as well.. Looking at the apps configuration at https://smartapi.angelbroking.com/apps, seems active app is missing

      posted in Test
      H
      Hemanand
    • generateToken throws error NodeJS SDK

      There seems to issue with smartapi-javascript nodejs sdk.. In file smartapi-connect.js, generateToken method,

      there is issue with setting public token statement. Current statement,

      self.setPublicToken(token_data.data.refreshToken);

      This should be,

      self.setPublicToken(response.data.refreshToken);

      posted in Test
      H
      Hemanand
    • ERROR in generateToken function

      There seems to issue with smartapi-javascript nodejs sdk.. In file smartapi-connect.js, generateToken method,

      there is issue with setting public token statement. Current statement,

      self.setPublicToken(token_data.data.refreshToken);

      This should be,

      self.setPublicToken(response.data.refreshToken);

      posted in Bugs
      H
      Hemanand
    • Login flow without password / username

      @administrators @SmartAPI-Group

      Could someone help me in understanding to implement login flow without username / password. But by using oauth flow like using public SmartAPI login endpoint

      https://smartapi.angelbroking.com/publisher-login?api_key=xxx

      Its mentioned after successful login, user gets redirected to the URL specified under MyApps. With the URL we pass auth_token & feed_token as query parameters.

      The redirection indeed works, but I get only "auth_token" & "feed_token"

      But in docs mentioned, need "access_token" to make any further transactions.

      Documentation is not very clear on this login flow and also forum / FAQ not much help. Could you share input on how exactly this flow is implemented ?

      Thanks.

      posted in Bugs
      H
      Hemanand
    • Login without using username & password

      Could you share how to implement login flow without using username, password & TOTP.. So more using oauth 2 kinda flow.

      From doc, could see for oauth login url would be https://smartapi.angelbroking.com/publisher-login?api_key=xxx

      which then redirects to the url mentioned in the app with auth_token & feed_token as query parameters.

      As part of generate token api, we need refreshToken api as request paylod but how to get that ?

      Could you share detailed steps how to implement this login flow ? Or smart api does not support such login flow ?

      posted in Bugs
      H
      Hemanand