code: public function call(string $method, string $api, array $options = []): array
      {
          $url = $this->apiEndpoint() . $api;
  
          if (!empty($this->token)) {
              Arr::set($options, 'headers.Authorization', 'Bearer ' . $this->token);
          }
  
          $this->response = $this->client->request($method, $url, $options);
  
          return json_decode(optional($this->response)->getBody(), true);
      }
docs: @param string $method
  @param string $api
  @param array  $options
  
  @return array