Navigation

    SmartAPI Forum
    • Register
    • Login
    • Search
    • Categories
    • Popular
    • Groups
    • FAQs
    • API Docs
    1. Home
    2. vragency007
    3. Topics
    V
    • Profile
    • Following 0
    • Followers 0
    • Topics 3
    • Posts 11
    • Best 0
    • Groups 0

    Topics created by vragency007

    • V

      Square Off API
      Test • • vragency007

      9
      0
      Votes
      9
      Posts
      132
      Views

      B

      @admin
      public void main() throws SmartAPIException {
      try{
      // PROVIDE YOUR API KEY HERE
      SmartConnect smartConnect = new SmartConnect("XXXX");
      User user = smartConnect.generateSession("XXXX","XXXX");

      smartConnect.setAccessToken(user.getAccessToken()); smartConnect.setUserId(user.getUserId()); // ;

      ///////// Above is partial Code of class//////
      Error:

      Exception: Attempt to invoke virtual method 'java.lang.String com.angelbroking.smartapi.models.User.getAccessToken()' on a null object reference

      12-21 14:56:40.986 3779 3779 W System.err

    • V

      AG8004 while placing order
      Test • • vragency007

      6
      0
      Votes
      6
      Posts
      30
      Views

      A

      @vragency007 ok

    • V

      JWT Token Expired
      General Discussion • • vragency007

      4
      0
      Votes
      4
      Posts
      24
      Views

      V

      @admin Ok thanks