public function getRemoteResourceOwner($token)
    {
        $provider = $this->getProvider();

        $realToken = OauthHelper::getRealToken($token);

        switch($this->getOauthVersion())
        {
            case 1:
                return $provider->getUserDetails($realToken);
                break;
            case 2:
                return $provider->getResourceOwner($realToken);
                break;
        }
    }
public function getRemoteResourceOwner($token)
    {
        $provider = $this->getProvider();

        $realToken = OauthHelper::getRealToken($token);

        switch($this->getOauthVersion())
        {
            case 1:
                return $provider->getUserDetails($realToken);
                break;
            case 2:
                return $provider->getResourceOwner($realToken);
                break;
        }
    }
public function getRemoteResourceOwner ( $ token ) { $ provider = $ this -> getProvider ( ) ; $ realToken = OauthHelper :: getRealToken ( $ token ) ; switch ( $ this -> getOauthVersion ( ) ) { case 1 : return $ provider -> getUserDetails ( $ realToken ) ; break ; case 2 : return $ provider -> getResourceOwner ( $ realToken ) ; break ; } }
Returns the remote resource owner.

@param $token

@return mixed
Returns the remote resource owner .