Initial Code commit
This commit is contained in:
parent
e016b9de22
commit
f8d737c528
@ -50,9 +50,6 @@
|
||||
"Content-Type: application/json",
|
||||
"OCS-APIRequest: true"
|
||||
]);
|
||||
|
||||
// convert data to json
|
||||
$respData = json_decode($response, true);
|
||||
|
||||
//print_r($respData);
|
||||
|
||||
|
@ -40,6 +40,6 @@ class HTTP {
|
||||
|
||||
static function fetchJSON(string $url, ?Array $headers = [], ?bool $associative = true): Mixed {
|
||||
// converts the response of fetch into an JSON array/object
|
||||
return json_decode(fetch($url, $headers), $associative);
|
||||
return json_decode(self::fetch($url, $headers), $associative);
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user