Get user details

hitman1980
Once the access token is generated and saved in database ..
Than can we use "access token" to fetch user details from zerodha?

I can't find any function in the lib file which will allow us to fetch user details like userid, amount available etc..
  • rishiswethan
    You can get amount available using kite.margins()
  • hitman1980
    Thanks .. It worked .. Although we can't get userid either using $kite->getProfile(); or $kite->getMargins();
    I guess I need to store it from $user variable when session is created using $kite->generateSession
This discussion has been closed.