monterrrubio

shardId

May 20th, 2013
32
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.39 KB | None | 0 0
  1.  $accessToken = $_SESSION['accessToken'];
  2.             $client= new Client(array(
  3.                 'token' => $accessToken,
  4.                 'sandbox' => SANDBOX
  5.             ));
  6.             $userStore = $client->getUserStore();
  7.             $usuario = $userStore->getUser();
  8.             if (!empty($usuario)) {
  9.                 $result = $usuario -> shardId;
  10.             }
  11.             $_SESSION['userShardId'] = $result;
Advertisement
Add Comment
Please, Sign In to add comment