public function authenticate(): bool
	{
		try {
			$res = $this->request('account/verify_credentials', 'GET');
			return !empty($res->id);

		} catch (Exception $e) {
			if ($e->getCode() === 401) {
				return false;
			}
			throw $e;
		}
	}
public function authenticate(): bool
	{
		try {
			$res = $this->request('account/verify_credentials', 'GET');
			return !empty($res->id);

		} catch (Exception $e) {
			if ($e->getCode() === 401) {
				return false;
			}
			throw $e;
		}
	}
public function authenticate ( ) : bool { try { $ res = $ this -> request ( 'account/verify_credentials' , 'GET' ) ; return ! empty ( $ res -> id ) ; } catch ( Exception $ e ) { if ( $ e -> getCode ( ) === 401 ) { return false ; } throw $ e ; } }
Tests if user credentials are valid.
@throws Exception
Tests if user credentials are valid .