Navigation

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

    Getting user null

    Test
    0
    2
    6
    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.
    • D
      Dipansu last edited by

      User user = smartConnect.generateSession(clientId, "8844",myTotp);
      if (user != null) {
      String feedToken = user.getFeedToken();
      String strWatchListScript = "nse_cm|2885&nse_cm|1594&nse_cm|11536&mcx_fo|221658";
      String task = "mw";

                      Examples examples = new Examples();
                      try {
                          examples.tickerUsage(clientId, feedToken, strWatchListScript, task);
                      } catch (SmartAPIException e) {
                          e.printStackTrace();
                      }
      

      I am using it in android studio and i am getting null user

      M 1 Reply Last reply Reply Quote 0
      • M
        Moderator_2 @Dipansu last edited by

        Hi @Dipansu

        Apologies for delayed response.
        GenerateSession is working fine from our end. Kindly reverify and let us know if the issue still occurs.

        Thanks & Regards,
        SmartAPI team

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