commit message

This commit is contained in:
2025-10-09 12:14:29 +02:00
commit 684ab3a132
830 changed files with 161115 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();
}
}
?>