Upgraded OFAA OAID scripts for ofaa API v2

This commit is contained in:
Frank Schubert
2026-01-07 13:30:42 +01:00
parent 672d92bff9
commit 2912da08ba
2 changed files with 5 additions and 4 deletions

View File

@@ -44,7 +44,7 @@ function getRestUrl($url, $headers, $params = [], $debug = false) {
if($debug) {
var_dump($_url, $ctx_options);
exit;
//exit;
}
$ctx = stream_context_create($ctx_options);
@@ -59,7 +59,7 @@ function getRestUrl($url, $headers, $params = [], $debug = false) {
} elseif($response_code == "401") {
return "__err__401";
} else {
die("getRestUrl(): $h_line");
die("getRestUrl():\n$h_line\n$output");
}
}
}