public function getUser($userIdentifier)
    {
        if ($this->apiVersionIsGreaterThanV3() && !is_numeric($userIdentifier)) {
            throw new InvalidIdentifierException('user');
        }

        return $this->get(sprintf('users/%s', $userIdentifier));
    }
public function getUser($userIdentifier)
    {
        if ($this->apiVersionIsGreaterThanV3() && !is_numeric($userIdentifier)) {
            throw new InvalidIdentifierException('user');
        }

        return $this->get(sprintf('users/%s', $userIdentifier));
    }
public function getUser ( $ userIdentifier ) { if ( $ this -> apiVersionIsGreaterThanV3 ( ) && ! is_numeric ( $ userIdentifier ) ) { throw new InvalidIdentifierException ( 'user' ) ; } return $ this -> get ( sprintf ( 'users/%s' , $ userIdentifier ) ) ; }
Get a user

@param string|int $userIdentifier
@throws InvalidIdentifierException
@return array|json
Get a user