public function get_objects($type, $param_options = array()) {
    if ($this->cache) {
      $signature = $this->createSignature($type . '/', $param_options);
      if ($this->cache->contains($signature)) {
        return $this->cache->fetch($signature);
      }
    }

    $resp = $this->call($type, $param_options);
    $result = $this->parse_result($resp['data']);

    if ($this->cache) {    
      $this->cache->save($signature, $result);
    }

    return $result;
  }
public function get_objects($type, $param_options = array()) {
    if ($this->cache) {
      $signature = $this->createSignature($type . '/', $param_options);
      if ($this->cache->contains($signature)) {
        return $this->cache->fetch($signature);
      }
    }

    $resp = $this->call($type, $param_options);
    $result = $this->parse_result($resp['data']);

    if ($this->cache) {    
      $this->cache->save($signature, $result);
    }

    return $result;
  }
public function get_objects ( $ type , $ param_options = array ( ) ) { if ( $ this -> cache ) { $ signature = $ this -> createSignature ( $ type . '/' , $ param_options ) ; if ( $ this -> cache -> contains ( $ signature ) ) { return $ this -> cache -> fetch ( $ signature ) ; } } $ resp = $ this -> call ( $ type , $ param_options ) ; $ result = $ this -> parse_result ( $ resp [ 'data' ] ) ; if ( $ this -> cache ) { $ this -> cache -> save ( $ signature , $ result ) ; } return $ result ; }
Get list of objects by given filters

@param $type           string  type of objects to fetch
@param $param_options  array   an associative array of query params

@return array response
Get list of objects by given filters