Namaskara,
The get token response is as thus:
{
“email”: “",
“exchanges”: [“NSE”, “NFO”, “BSE”, “CDS”, “BFO”, “BCD”],
“products”: [“D”, “CO”, “I”],
“broker”: “UPSTOX”,
“user_id”: "”,
“user_name”: "",
“order_types”: [“MARKET”, “LIMIT”, “SL”, “SL-M”],
“user_type”: “individual”,
“poa”: false,
“is_active”: true,
“access_token”: ""
“extended_token”: "******"
}
in the above only access_token and extended_token are token, rest are user profile.
Now Get Profile also returns:
{
“status”: “success”,
“data”: {
“email”: “",
“exchanges”: [“NSE”, “NFO”, “BSE”, “CDS”, “BFO”, “BCD”],
“products”: [“D”, “CO”, “I”],
“broker”: “UPSTOX”,
“user_id”: "”,
“user_name”: “******”,
“order_types”: [“MARKET”, “LIMIT”, “SL”, “SL-M”],
“user_type”: “individual”,
“poa”: false,
“ddpi”: false,
“is_active”: true
}
}
now… if we consider functional modularity … Get token should return only
“access_token”: ""
“extended_token”: ""
Rest must be in Get_Profile… API.
Regards
Rathnadhar K V