OAID / Rimo Workorder update:
- OAIDs are now auto assigned to preorders/wohneinheiten on save - OAIDs can be exported to rimo via Preorder Admin functions - Preorder admin function createWorkorder automatically creates, exports and assigns OAIDs
This commit is contained in:
@@ -20,8 +20,12 @@ $mainlog = mfLoghandler::singleton();
|
||||
$log = new mfLog_File();
|
||||
$log->init(BASEDIR."/var/log/rimo-import.log");
|
||||
|
||||
$apiUrl = RIMO_API_JSON_URL_PROD;
|
||||
$apiToken = RIMO_API_JSON_APIKEY_PROD;
|
||||
$apiOwner = "rml";
|
||||
$apiEdition = "prod";
|
||||
$apiData = TT_RIMO_API_CREDS[$apiOwner][$apiEdition];
|
||||
|
||||
$apiUrl = $apiData["url"];
|
||||
$apiToken = $apiData["key"];
|
||||
|
||||
$epGetClusters = $apiUrl.RIMO_API_JSON_EP_GET_CLUSTERS;
|
||||
$epGetBuildings = $apiUrl.RIMO_API_JSON_EP_GET_BUILDINGS;
|
||||
@@ -33,7 +37,7 @@ if(!defined("RIMO_API_JSON_APIKEY_PROD")) {
|
||||
|
||||
$import_count = 0;
|
||||
|
||||
$baseParams = ['apiKey' => RIMO_API_JSON_APIKEY_PROD];
|
||||
$baseParams = ['apiKey' => $apiToken];
|
||||
|
||||
$ctxOptsPost = [
|
||||
'http' => [
|
||||
@@ -67,7 +71,8 @@ if($responseText === false) {
|
||||
}
|
||||
|
||||
$clustersResponse = json_decode($responseText);
|
||||
//var_dump($clustersResponse);
|
||||
var_dump($clustersResponse);
|
||||
exit;
|
||||
if(is_object($clustersResponse) && property_exists($clustersResponse, "item") && is_array($clustersResponse->item) && count($clustersResponse->item)) {
|
||||
|
||||
foreach($clustersResponse->item as $cluster) {
|
||||
|
||||
Reference in New Issue
Block a user