code: public function getAll(array $filterAttributes = [])
      {
          $filters = ['query' => [$filterAttributes]];
  
          try {
              $result = $this->client->get($this->slug, $filters);
          } catch (RequestException $e) {
              $return['request'] = $e->getRequest() . "\n";
              if ($e->hasResponse()) {
                  return $return['response'] = $e->getResponse() . "\n";
  
              }
          }
  
          return $result->json();
  
      }
docs: Get all from resource
  @param array $filterAttributes
  @return mixed