libraries/Maniaplanet/WebServices/ManiaConnect/Player.php
function getPlayer()
	{
		$player = self::$persistance->getVariable('player');
		if(!$player)
		{
			if($this->getAccessToken())
			{
				$player = $this->executeOAuth2('GET', '/player/');
				self::$persistance->setVariable('player', $player);
			}
		}
		return $player;
	}
function getPlayer()
	{
		$player = self::$persistance->getVariable('player');
		if(!$player)
		{
			if($this->getAccessToken())
			{
				$player = $this->executeOAuth2('GET', '/player/');
				self::$persistance->setVariable('player', $player);
			}
		}
		return $player;
	}
function getPlayer ( ) { $ player = self :: $ persistance -> getVariable ( 'player' ) ; if ( ! $ player ) { if ( $ this -> getAccessToken ( ) ) { $ player = $ this -> executeOAuth2 ( 'GET' , '/player/' ) ; self :: $ persistance -> setVariable ( 'player' , $ player ) ; } } return $ player ; }
This is the first method to call when you have an authorization code.
It will retrieve an access token if possible and then call the service to
retrieve a basic object about the authentified player.

You do not need any special scope to call this service, as long as you
have an access token.

If an access token is not found, it will return false

@return object A player object or false if no access token is found
This is the first method to call when you have an authorization code . It will retrieve an access token if possible and then call the service to retrieve a basic object about the authentified player .