public function search($filter, $fields){
        $param = array(
            'filter' => json_encode($filter),
            'fields' => json_encode($fields)
        );

        return $this->get('inventory/resources/', $param);
    }