src/Idoit.php
public function batchSearch(array $queries) {
        $requests = [];

        foreach ($queries as $query) {
            $requests[] = [
                'method' => 'idoit.search',
                'params' => [
                    'q' => $query
                ]
            ];
        }

        return $this->api->batchRequest($requests);
    }
public function batchSearch(array $queries) {
        $requests = [];

        foreach ($queries as $query) {
            $requests[] = [
                'method' => 'idoit.search',
                'params' => [
                    'q' => $query
                ]
            ];
        }

        return $this->api->batchRequest($requests);
    }
public function batchSearch ( array $ queries ) { $ requests = [ ] ; foreach ( $ queries as $ query ) { $ requests [ ] = [ 'method' => 'idoit.search' , 'params' => [ 'q' => $ query ] ] ; } return $ this -> api -> batchRequest ( $ requests ) ; }
Perform one or more searches at once

@param array $queries Queries as strings

@return array Search results

@throws Exception on error
Perform one or more searches at once