public function send_batch_requests($requests){
		$client = new \GuzzleHttp\Client();

		$response = $client->post($this->api_endpoint.'batch', array(
		    'headers' =>  array('Authorization' => 'Token token="'.$this->getAPIKey().'"'),
		    'json' => array( "ops" => $requests, "sequential" => true )
		));

		$result = json_decode($response->getBody());

		return $result;
	}
public function send_batch_requests($requests){
		$client = new \GuzzleHttp\Client();

		$response = $client->post($this->api_endpoint.'batch', array(
		    'headers' =>  array('Authorization' => 'Token token="'.$this->getAPIKey().'"'),
		    'json' => array( "ops" => $requests, "sequential" => true )
		));

		$result = json_decode($response->getBody());

		return $result;
	}
public function send_batch_requests ( $ requests ) { $ client = new \ GuzzleHttp \ Client ( ) ; $ response = $ client -> post ( $ this -> api_endpoint . 'batch' , array ( 'headers' => array ( 'Authorization' => 'Token token="' . $ this -> getAPIKey ( ) . '"' ) , 'json' => array ( "ops" => $ requests , "sequential" => true ) ) ) ; $ result = json_decode ( $ response -> getBody ( ) ) ; return $ result ; }
Send an array of batch requests
@param Array $requests
@return stdObject
Send an array of batch requests