Added AddressDB bulk update + address update in rimo

This commit is contained in:
Frank Schubert
2025-09-19 11:33:19 +02:00
parent 80cdbcb4ca
commit 67d259ac13
4 changed files with 41 additions and 5 deletions

View File

@@ -36,14 +36,16 @@ class Rimoapi {
$createOrderEp = RIMO_API_JSON_URL.RIMO_API_JSON_EP_CHANGE_BUILDING_ADDRESS;
$put_url = $createOrderEp."?".$qs;
$ctx = stream_context_create($ctx_opts);
$log->debug(__METHOD__.": Creating OAID in Rimo: $put_url");
$log->debug(__METHOD__.": Address Change in Rimo: $put_url");
$response = file_get_contents($put_url, false, $ctx);
//var_dump($response);exit;
$log->debug(__METHOD__.": response: ".print_r($response,true));
if($response === false) {
$log->error("Fehler beim Update der Adresse in RIMO ".$building_external_id);
return false;
}
$resp_data = json_decode($response);
if(!$resp_data->id) return false;