This commit is contained in:
2024-02-14 16:08:19 +01:00
commit bf1a81e362
99 changed files with 22740 additions and 0 deletions

25
EpiApi.php Normal file
View File

@@ -0,0 +1,25 @@
<?php
require('vendor/autoload.php');
class Epirent{
public function requestEpiApi(string $requestString){
$client = new GuzzleHttp\Client();
$requestUrl = Epirent_Connectionprotocol."://".Epirent_Server.":".Epirent_Port.$requestString;
$response = $client->request('GET', $requestUrl,[
'headers' =>[
'X-EPI-NO-SESSION' => 'True',
'X-EPI-ACC-TOK' => Epirent_Token
]
]);
// $json = json_decode($response->getBody());
return $response->getBody();
}
}
?>