From f81f3ec8ffe88cb8f5e2d44b0767e6a4ece4d8d3 Mon Sep 17 00:00:00 2001
From: Till Brehm <tbrehm@ispconfig.org>
Date: Mon, 12 Feb 2018 12:25:02 +0100
Subject: [PATCH] Corrected some remote api examples.

---
 remoting_client/examples/mail_user_add.php           | 4 ++--
 remoting_client/examples/sites_database_add.php      | 2 +-
 remoting_client/examples/sites_database_user_add.php | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/remoting_client/examples/mail_user_add.php b/remoting_client/examples/mail_user_add.php
index 25e3590af1..3b7d240ecc 100644
--- a/remoting_client/examples/mail_user_add.php
+++ b/remoting_client/examples/mail_user_add.php
@@ -29,8 +29,8 @@ try {
 		'cc' => '',
 		'homedir' => '/var/vmail',
 		'autoresponder' => 'n',
-		'autoresponder_start_date' => array('day' => 1, 'month' => 7, 'year' => 2012, 'hour' => 0, 'minute' => 0),
-		'autoresponder_end_date' => array('day' => 20, 'month' => 7, 'year' => 2012, 'hour' => 0, 'minute' => 0),
+		'autoresponder_start_date' => '',
+		'autoresponder_end_date' => '',
 		'autoresponder_text' => 'hallo',
 		'move_junk' => 'n',
 		'custom_mailfilter' => 'spam',
diff --git a/remoting_client/examples/sites_database_add.php b/remoting_client/examples/sites_database_add.php
index 3c82776990..c63ad551eb 100644
--- a/remoting_client/examples/sites_database_add.php
+++ b/remoting_client/examples/sites_database_add.php
@@ -19,7 +19,7 @@ try {
 	$params = array(
 		'server_id' => 1,
 		'type' => 'mysql',
-		'website_id' => 1,
+		'parent_domain_id' => 1,
 		'database_name' => 'db_name2',
 		'database_user_id' => '1',
 		'database_ro_user_id' => '0',
diff --git a/remoting_client/examples/sites_database_user_add.php b/remoting_client/examples/sites_database_user_add.php
index 1081633409..d59b66d9e6 100644
--- a/remoting_client/examples/sites_database_user_add.php
+++ b/remoting_client/examples/sites_database_user_add.php
@@ -22,7 +22,7 @@ try {
 		'database_password' => 'db_name2'
 	);
 
-	$database_id = $client->sites_database_user_add($session_id, $client_id, $params);
+	$database_user_id = $client->sites_database_user_add($session_id, $client_id, $params);
 
 	echo "Database ID: ".$database_user_id."<br>";
 
-- 
GitLab