public function getUserByUsername($username)
    {
        if (!$this->apiVersionIsGreaterThanV3()) {
            throw new EndpointNotSupportedByApiVersionException();
        }

        $params = [
            'login' => $username,
        ];

        return $this->get('users', $params);
    }
public function getUserByUsername($username)
    {
        if (!$this->apiVersionIsGreaterThanV3()) {
            throw new EndpointNotSupportedByApiVersionException();
        }

        $params = [
            'login' => $username,
        ];

        return $this->get('users', $params);
    }
public function getUserByUsername ( $ username ) { if ( ! $ this -> apiVersionIsGreaterThanV3 ( ) ) { throw new EndpointNotSupportedByApiVersionException ( ) ; } $ params = [ 'login' => $ username , ] ; return $ this -> get ( 'users' , $ params ) ; }
Get a user from their username

@param string $username
@throws EndpointNotSupportedByApiVersionException
@return array|json
Get a user from their username