/** * Make a batch request. * * @param GSC_ProductList $products The list of products to batch. * @param boolean $warnings A boolean to determine if the warnings should be * included. Defaults to false. * @param boolean $dryRun A boolean to determine if the dry-run should be * included. Defaults to false. * @return GSC_ProductList The returned results from the batch. **/ public function batch($products, $warnings = false, $dryRun = false) { $batchUri = $this->appendQueryParams($this->getBatchUri(), $warnings, $dryRun); $resp = _GSC_Http::post($batchUri, $products->toXML(), $this->token); return _GSC_AtomParser::parse($resp->body); }