code: public function performRequest($method, $path, array $params = [])
      {
          $request = $this->buildRequest($method, $path, $params);
  
          try {
              $response = $this->httpClient->send($request);
              $content = json_decode($response->getBody()->getContents(), true);
          } catch (ClientException $ex) {
              if ($ex->getResponse()->getStatusCode() == 401) {
                  if ($this->isPsr7Version()) {
                      $uri = $request->getUri();
                  } else {
                      $uri = $request->getUrl();
                  }
  
                  $message = sprintf('Unauthorized %s Request to %s', $request->getMethod(), $uri);
  
                  throw new UnauthorizedRequestException($message);
              }
  
              throw $ex;
          }
  
          return $this->createResponseFromData($content);
      }
docs: Perform a HTTP Request
  
  @param $method
  @param $path
  @param array $params
  
  @return Entry|EntryCollection
  
  @throws UnauthorizedRequestException