Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $accessToken = $_SESSION['accessToken'];
- $client= new Client(array(
- 'token' => $accessToken,
- 'sandbox' => SANDBOX
- ));
- $userStore = $client->getUserStore();
- $usuario = $userStore->getUser();
- if (!empty($usuario)) {
- $result = $usuario -> shardId;
- }
- $_SESSION['userShardId'] = $result;
Advertisement
Add Comment
Please, Sign In to add comment