To obtain User Info, you have to follow three steps in general.
First, you need to obtain user's consent to retrieve the information you want.
This is explained in the example "ObtainUserConsent.php".
Once you get the user's consent, the end result would be long lived refresh token.
This refresh token should be stored in a permanent storage for later use.
Lastly, when you need to retrieve the user information, you need to generate the short lived access token
to retreive the information. The short lived access token can be retrieved using the example shown in
"GenerateAccessTokenFromRefreshToken.php", or as shown below
You can retrieve the refresh token by executing ObtainUserConsent.php and store the refresh token
NOTE: PLEASE DO NOT USE RESULTPRINTER CLASS IN YOUR ORIGINAL CODE. FOR SAMPLE ONLY