Upgraded OFAA OAID scripts for ofaa API v2
This commit is contained in:
@@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user