저자: Asim Liaquat (asimlqt22@gmail.com)
예제 #1
0
 /**
  *
  * @param \Google\Spreadsheet\Batch\BatchRequest $batchRequest
  *
  * @return \Google\Spreadsheet\Batch\BatchResponse
  */
 public function insertBatch(BatchRequest $batchRequest)
 {
     $xml = $batchRequest->createRequestXml($this);
     $response = ServiceRequestFactory::getInstance()->addHeader("If-Match", "*")->post($this->getBatchUrl(), $xml);
     ServiceRequestFactory::getInstance()->removeHeader("If-Match");
     return new BatchResponse(new SimpleXMLElement($response));
 }
예제 #2
0
 /**
  * 
  * @param \Google\Spreadsheet\Batch\BatchRequest $batchRequest
  * 
  * @return \Google\Spreadsheet\Batch\BatchResponse
  */
 public function updateBatch(BatchRequest $batchRequest)
 {
     $xml = $batchRequest->createRequestXml($this);
     $response = ServiceRequestFactory::getInstance()->post($this->getBatchUrl(), $xml);
     return new BatchResponse(new SimpleXMLElement($response));
 }