Citycom API

This commit is contained in:
Frank Schubert
2025-07-29 13:34:13 +02:00
parent d1696c663e
commit fdf1291d17
8 changed files with 338 additions and 14 deletions

View File

@@ -260,6 +260,10 @@ class AddressHelper
return false;
}
}
if($hausnummer->vlan_stag != $stag) {
$hausnummer->vlan_stag = $stag;
$hausnummer->save();
}
return $hausnummer;

View File

@@ -25,7 +25,7 @@ class CitycomImporter {
// get locations (Hausnummer) + Sublocations (Wohneinheiten)
$hausnummer_found_count = 0;
$ccapi = new \Citycom_OanApi(CITYCOM_OAN_API_USER, CITYCOM_OAN_API_PASS);
$ccapi = new \Citycom_OanApiClient(CITYCOM_OAN_API_USER, CITYCOM_OAN_API_PASS);
$locations = $ccapi->getLocations();
if(!is_array($locations)) {