Browse Source

editor api

andre 8 months ago
parent
commit
d58fd3741f
1 changed files with 3 additions and 1 deletions
  1. 3 1
      siteBuilder.php

+ 3 - 1
siteBuilder.php

@@ -474,7 +474,7 @@ function siteBuilder_editSite($params) {
 		return 'Error: invalid site name';
 		return 'Error: invalid site name';
 	}
 	}
 	$site = $_POST['s'];
 	$site = $_POST['s'];
-	$api = new SiteProApiClient('https://builder.thurdata.ch/', 'apikey0', '993yVHwC05TLsx2JI2XFlAhkkPUxR6JbQUYbI.a5HiRtmNV9');
+	$api = new SiteProApiClient('https://builder.thurdata.ch/api/', 'apikey0', '993yVHwC05TLsx2JI2XFlAhkkPUxR6JbQUYbI.a5HiRtmNV9');
 	// use this for enterprise licenses and change 'your-bulder-domain.com' to your builder domain
 	// use this for enterprise licenses and change 'your-bulder-domain.com' to your builder domain
 	//$api = new SiteProApiClient('http://your-bulder-domain.com/api/', 'your_api_username', 'your_api_password');
 	//$api = new SiteProApiClient('http://your-bulder-domain.com/api/', 'your_api_username', 'your_api_password');
 
 
@@ -487,6 +487,8 @@ function siteBuilder_editSite($params) {
 			'lang' => 'de',						// (optional) 2-letter language code, set language code you whant builder to open in
 			'lang' => 'de',						// (optional) 2-letter language code, set language code you whant builder to open in
 			'apiUrl' => '/deployDev', // (required) API endpoint URL
 			'apiUrl' => '/deployDev', // (required) API endpoint URL
 			'resellerClientAccountId' => $params['serviceid'],	// (required) ID of website/user in your system
 			'resellerClientAccountId' => $params['serviceid'],	// (required) ID of website/user in your system
+//			'username' => 'example_user',		// (optional) authorization username to be used with API endpoint
+//			'password' => 'example_password',	// (optional) authorization password to be used with API endpoint
 		));
 		));
 		if (!$res || !is_object($res)) {
 		if (!$res || !is_object($res)) {
 			logModuleCall(
 			logModuleCall(