Added AddressDB bulk update + address update in rimo
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user