Refresh an Account
The following sample will show you how to refresh an account to get the latest user's informations
Prerequisites :
Getting startedStep 1: Refresh an account
In order to refresh an account simply call the refreshAccount
method :
$accountId = '';
$scope = ['profile', 'nft'];
/* Refresh the user */
$user = $client->refreshAccount([
$accountId,
$scope
]);
On each user's refresh, you will receive a JSON like in the Login Section
Login⭐ Congratulations! You have successfully refresh the user's account !
Last updated