<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
fabianblum / cryo-fall-statistics-api-client example snippets
iInstance = new CryoFallStatisticsApiClient\Api\ServerApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$guid = "guid_example"; // string | The Server GUID
$from = "from_example"; // string | Filter date from, format: 2004-02-12T15:19:21+00:00
$to = "to_example"; // string | Filter date to, format: 2004-02-12T15:19:21+00:00
try {
$result = $apiInstance->getLeaderboardAction($guid, $from, $to);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ServerApi->getLeaderboardAction: ', $e->getMessage(), PHP_EOL;
}
$apiInstance = new CryoFallStatisticsApiClient\Api\ServerApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$guid = "guid_example"; // string | The Server GUID
try {
$result = $apiInstance->getOnlineAction($guid);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ServerApi->getOnlineAction: ', $e->getMessage(), PHP_EOL;
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.