changed Rimoapi::addRemark() to take api key parameter

This commit is contained in:
Frank Schubert
2026-01-14 14:07:34 +01:00
parent 8cebb77bf4
commit 4c483a5379
2 changed files with 9 additions and 3 deletions

View File

@@ -553,13 +553,13 @@ class Rimoapi {
return $resp_data;
}
public static function addRemark($object_id, $text) {
public static function addRemark($apikey, $object_id, $text) {
if(!$object_id || !$text) return false;
$log = mfLoghandler::singleton();
$params = [];
$params['apiKey'] = RIMO_API_JSON_APIKEY;
$params['apiKey'] = $apikey;
$params['objectId'] = $object_id;
$params['text'] = $text;