All URIs are relative to http://localhost.
Method | HTTP request | Description |
---|---|---|
apiConfigI18nGet() | GET /api/config/i18n | Returns the user specific locale configuration |
apiConfigTimesheetGet() | GET /api/config/timesheet | Returns the timesheet configuration |
apiPingGet() | GET /api/ping | A testing route for the API |
apiPluginsGet() | GET /api/plugins | Returns information about installed Plugins |
apiVersionGet() | GET /api/version | Returns information about the Kimai release |
apiConfigI18nGet(): \Fiteco\KimaiClient\Model\I18nConfig
Returns the user specific locale configuration
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: apiToken
$config = Fiteco\KimaiClient\Configuration::getDefaultConfiguration()->setApiKey('X-AUTH-TOKEN', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Fiteco\KimaiClient\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-AUTH-TOKEN', 'Bearer');
// Configure API key authorization: apiUser
$config = Fiteco\KimaiClient\Configuration::getDefaultConfiguration()->setApiKey('X-AUTH-USER', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Fiteco\KimaiClient\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-AUTH-USER', 'Bearer');
$apiInstance = new Fiteco\KimaiClient\Api\DefaultApi(
// 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
);
try {
$result = $apiInstance->apiConfigI18nGet();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->apiConfigI18nGet: ', $e->getMessage(), PHP_EOL;
}
This endpoint does not need any parameter.
\Fiteco\KimaiClient\Model\I18nConfig
- Content-Type: Not defined
- Accept:
*/*
[Back to top] [Back to API list] [Back to Model list] [Back to README]
apiConfigTimesheetGet(): \Fiteco\KimaiClient\Model\TimesheetConfig
Returns the timesheet configuration
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: apiToken
$config = Fiteco\KimaiClient\Configuration::getDefaultConfiguration()->setApiKey('X-AUTH-TOKEN', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Fiteco\KimaiClient\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-AUTH-TOKEN', 'Bearer');
// Configure API key authorization: apiUser
$config = Fiteco\KimaiClient\Configuration::getDefaultConfiguration()->setApiKey('X-AUTH-USER', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Fiteco\KimaiClient\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-AUTH-USER', 'Bearer');
$apiInstance = new Fiteco\KimaiClient\Api\DefaultApi(
// 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
);
try {
$result = $apiInstance->apiConfigTimesheetGet();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->apiConfigTimesheetGet: ', $e->getMessage(), PHP_EOL;
}
This endpoint does not need any parameter.
\Fiteco\KimaiClient\Model\TimesheetConfig
- Content-Type: Not defined
- Accept:
*/*
[Back to top] [Back to API list] [Back to Model list] [Back to README]
apiPingGet()
A testing route for the API
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: apiToken
$config = Fiteco\KimaiClient\Configuration::getDefaultConfiguration()->setApiKey('X-AUTH-TOKEN', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Fiteco\KimaiClient\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-AUTH-TOKEN', 'Bearer');
// Configure API key authorization: apiUser
$config = Fiteco\KimaiClient\Configuration::getDefaultConfiguration()->setApiKey('X-AUTH-USER', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Fiteco\KimaiClient\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-AUTH-USER', 'Bearer');
$apiInstance = new Fiteco\KimaiClient\Api\DefaultApi(
// 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
);
try {
$apiInstance->apiPingGet();
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->apiPingGet: ', $e->getMessage(), PHP_EOL;
}
This endpoint does not need any parameter.
void (empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
apiPluginsGet(): \Fiteco\KimaiClient\Model\Plugin[]
Returns information about installed Plugins
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: apiToken
$config = Fiteco\KimaiClient\Configuration::getDefaultConfiguration()->setApiKey('X-AUTH-TOKEN', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Fiteco\KimaiClient\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-AUTH-TOKEN', 'Bearer');
// Configure API key authorization: apiUser
$config = Fiteco\KimaiClient\Configuration::getDefaultConfiguration()->setApiKey('X-AUTH-USER', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Fiteco\KimaiClient\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-AUTH-USER', 'Bearer');
$apiInstance = new Fiteco\KimaiClient\Api\DefaultApi(
// 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
);
try {
$result = $apiInstance->apiPluginsGet();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->apiPluginsGet: ', $e->getMessage(), PHP_EOL;
}
This endpoint does not need any parameter.
\Fiteco\KimaiClient\Model\Plugin[]
- Content-Type: Not defined
- Accept:
*/*
[Back to top] [Back to API list] [Back to Model list] [Back to README]
apiVersionGet(): \Fiteco\KimaiClient\Model\Version
Returns information about the Kimai release
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: apiToken
$config = Fiteco\KimaiClient\Configuration::getDefaultConfiguration()->setApiKey('X-AUTH-TOKEN', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Fiteco\KimaiClient\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-AUTH-TOKEN', 'Bearer');
// Configure API key authorization: apiUser
$config = Fiteco\KimaiClient\Configuration::getDefaultConfiguration()->setApiKey('X-AUTH-USER', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Fiteco\KimaiClient\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-AUTH-USER', 'Bearer');
$apiInstance = new Fiteco\KimaiClient\Api\DefaultApi(
// 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
);
try {
$result = $apiInstance->apiVersionGet();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->apiVersionGet: ', $e->getMessage(), PHP_EOL;
}
This endpoint does not need any parameter.
\Fiteco\KimaiClient\Model\Version
- Content-Type: Not defined
- Accept:
*/*
[Back to top] [Back to API list] [Back to Model list] [Back to README]