We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 26c2258 commit 9ed086eCopy full SHA for 9ed086e
1 file changed
src/Entity/Event.php
@@ -15,7 +15,7 @@
15
namespace OpenLRW\Entity;
16
17
use DateTime;
18
- use OpenLRW\ApiClient;
+ use OpenLRW\OpenLRW;
19
use OpenLRW\Exception\GenericException;
20
21
class Event
@@ -26,10 +26,10 @@ private static function postCaliper($data)
26
$header = [
27
'X-Requested-With' => 'XMLHttpRequest',
28
'Content-Type' => 'application/json',
29
- 'Authorization' => ApiClient::getKey()
+ 'Authorization' => OpenLRW::getKey()
30
];
31
32
- return ApiClient::guzzlePost("key/caliper", ['headers' => $header, 'body' => $data])->getStatusCode();
+ return OpenLRW::guzzlePost('key/caliper', ['headers' => $header, 'body' => $data])->getStatusCode();
33
}
34
35
0 commit comments