All URIs are relative to http://localhost, except if the operation defines another base path.
Method | HTTP request | Description |
---|---|---|
createOccupationalSickLeaveHistory() | POST /employers/{employerId}/occupationalsickleavehistory/employees/{employeeId} | Create OccupationalSickLeaveHistory |
deleteOccupationalSickLeaveHistory() | DELETE /employers/{employerId}/occupationalsickleavehistory/employees/{employeeId}/{id} | Delete OccupationalSickLeaveHistory |
getOccupationalSickLeaveHistory() | GET /employers/{employerId}/occupationalsickleavehistory/employees/{employeeId}/{id} | Get OccupationalSickLeaveHistory |
importOccupationalSickLeaveHistoryCsvOccupationalSickLeaveHistory() | POST /employers/{employerId}/occupationalsickleavehistory/importfile | Import OccupationalSickLeaveHistory from csv file |
occupationalSickLeaveHistoryOccupationalSickLeaveHistory() | GET /employers/{employerId}/occupationalsickleavehistory/employees/{employeeId} | List OccupationalSickLeaveHistory |
updateOccupationalSickLeaveHistory() | PUT /employers/{employerId}/occupationalsickleavehistory/employees/{employeeId}/{id} | Update OccupationalSickLeaveHistory |
uploadOSPHistoryOccupationalSickLeaveHistory() | POST /employers/{employerId}/occupationalsickleavehistory/import | Upload OccupationalSickLeaveHistory |
createOccupationalSickLeaveHistory($employerId, $employeeId, $occupationalSickLeaveHistory): \SynergiTech\Staffology\Model\OccupationalSickLeaveHistory
Create OccupationalSickLeaveHistory
Creates Occupational sick leave history for the Employee.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: Basic
$config = SynergiTech\Staffology\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
$apiInstance = new SynergiTech\Staffology\Api\OccupationalSickLeaveHistoryApi(
// 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
);
$employerId = 'employerId_example'; // string | The Id of the Employer
$employeeId = 'employeeId_example'; // string | The Id of the Employee to which the Occupational sick leave history belongs
$occupationalSickLeaveHistory = new \SynergiTech\Staffology\Model\OccupationalSickLeaveHistory(); // \SynergiTech\Staffology\Model\OccupationalSickLeaveHistory
try {
$result = $apiInstance->createOccupationalSickLeaveHistory($employerId, $employeeId, $occupationalSickLeaveHistory);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling OccupationalSickLeaveHistoryApi->createOccupationalSickLeaveHistory: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
employerId | string | The Id of the Employer | |
employeeId | string | The Id of the Employee to which the Occupational sick leave history belongs | |
occupationalSickLeaveHistory | \SynergiTech\Staffology\Model\OccupationalSickLeaveHistory | [optional] |
\SynergiTech\Staffology\Model\OccupationalSickLeaveHistory
- Content-Type:
application/json-patch+json
,application/json
,text/json
,application/*+json
- Accept:
text/plain
,application/json
,text/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
deleteOccupationalSickLeaveHistory($employerId, $employeeId, $id)
Delete OccupationalSickLeaveHistory
Deletes the specified Occupational leave history record.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: Basic
$config = SynergiTech\Staffology\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
$apiInstance = new SynergiTech\Staffology\Api\OccupationalSickLeaveHistoryApi(
// 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
);
$employerId = 'employerId_example'; // string
$employeeId = 'employeeId_example'; // string
$id = 'id_example'; // string | The Id of the Occupational sick leave which you want to fetch
try {
$apiInstance->deleteOccupationalSickLeaveHistory($employerId, $employeeId, $id);
} catch (Exception $e) {
echo 'Exception when calling OccupationalSickLeaveHistoryApi->deleteOccupationalSickLeaveHistory: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
employerId | string | ||
employeeId | string | ||
id | string | The Id of the Occupational sick leave which you want to fetch |
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]
getOccupationalSickLeaveHistory($employerId, $employeeId, $id): \SynergiTech\Staffology\Model\OccupationalSickLeaveHistory
Get OccupationalSickLeaveHistory
Gets a occupational sick leave for the employee and employer.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: Basic
$config = SynergiTech\Staffology\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
$apiInstance = new SynergiTech\Staffology\Api\OccupationalSickLeaveHistoryApi(
// 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
);
$employerId = 'employerId_example'; // string
$employeeId = 'employeeId_example'; // string
$id = 'id_example'; // string | The Id of the Occupational leave history which you want to fetch
try {
$result = $apiInstance->getOccupationalSickLeaveHistory($employerId, $employeeId, $id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling OccupationalSickLeaveHistoryApi->getOccupationalSickLeaveHistory: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
employerId | string | ||
employeeId | string | ||
id | string | The Id of the Occupational leave history which you want to fetch |
\SynergiTech\Staffology\Model\OccupationalSickLeaveHistory
- Content-Type: Not defined
- Accept:
text/plain
,application/json
,text/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
importOccupationalSickLeaveHistoryCsvOccupationalSickLeaveHistory($employerId, $file): \SynergiTech\Staffology\Model\Item[]
Import OccupationalSickLeaveHistory from csv file
Import Occupational Sick Leave History from a CSV file.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: Basic
$config = SynergiTech\Staffology\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
$apiInstance = new SynergiTech\Staffology\Api\OccupationalSickLeaveHistoryApi(
// 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
);
$employerId = 'employerId_example'; // string | The Id of the Employer
$file = '/path/to/file.txt'; // \SplFileObject
try {
$result = $apiInstance->importOccupationalSickLeaveHistoryCsvOccupationalSickLeaveHistory($employerId, $file);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling OccupationalSickLeaveHistoryApi->importOccupationalSickLeaveHistoryCsvOccupationalSickLeaveHistory: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
employerId | string | The Id of the Employer | |
file | \SplFileObject**\SplFileObject** | [optional] |
\SynergiTech\Staffology\Model\Item[]
- Content-Type:
multipart/form-data
- Accept:
text/plain
,application/json
,text/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
occupationalSickLeaveHistoryOccupationalSickLeaveHistory($employerId, $employeeId): \SynergiTech\Staffology\Model\Item[]
List OccupationalSickLeaveHistory
Lists all OccupationalSickLeaveHistory for the Employee specified
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: Basic
$config = SynergiTech\Staffology\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
$apiInstance = new SynergiTech\Staffology\Api\OccupationalSickLeaveHistoryApi(
// 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
);
$employerId = 'employerId_example'; // string
$employeeId = 'employeeId_example'; // string
try {
$result = $apiInstance->occupationalSickLeaveHistoryOccupationalSickLeaveHistory($employerId, $employeeId);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling OccupationalSickLeaveHistoryApi->occupationalSickLeaveHistoryOccupationalSickLeaveHistory: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
employerId | string | ||
employeeId | string |
\SynergiTech\Staffology\Model\Item[]
- Content-Type: Not defined
- Accept:
text/plain
,application/json
,text/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
updateOccupationalSickLeaveHistory($employerId, $employeeId, $id, $occupationalSickLeaveHistory): \SynergiTech\Staffology\Model\OccupationalSickLeaveHistory
Update OccupationalSickLeaveHistory
Updates a occupational sick leave for the employee and employer.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: Basic
$config = SynergiTech\Staffology\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
$apiInstance = new SynergiTech\Staffology\Api\OccupationalSickLeaveHistoryApi(
// 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
);
$employerId = 'employerId_example'; // string
$employeeId = 'employeeId_example'; // string
$id = 'id_example'; // string | The Id of the Occupational leave history which you want to fetch
$occupationalSickLeaveHistory = new \SynergiTech\Staffology\Model\OccupationalSickLeaveHistory(); // \SynergiTech\Staffology\Model\OccupationalSickLeaveHistory
try {
$result = $apiInstance->updateOccupationalSickLeaveHistory($employerId, $employeeId, $id, $occupationalSickLeaveHistory);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling OccupationalSickLeaveHistoryApi->updateOccupationalSickLeaveHistory: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
employerId | string | ||
employeeId | string | ||
id | string | The Id of the Occupational leave history which you want to fetch | |
occupationalSickLeaveHistory | \SynergiTech\Staffology\Model\OccupationalSickLeaveHistory | [optional] |
\SynergiTech\Staffology\Model\OccupationalSickLeaveHistory
- Content-Type:
application/json-patch+json
,application/json
,text/json
,application/*+json
- Accept:
text/plain
,application/json
,text/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
uploadOSPHistoryOccupationalSickLeaveHistory($employerId, $occupationalSickLeaveHistory): \SynergiTech\Staffology\Model\Item[]
Upload OccupationalSickLeaveHistory
Uploads new Occupational sick leave history for the Employer against specific occupational policy.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: Basic
$config = SynergiTech\Staffology\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
$apiInstance = new SynergiTech\Staffology\Api\OccupationalSickLeaveHistoryApi(
// 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
);
$employerId = 'employerId_example'; // string | The Id of the Employer to which the occupational sick leave history is to be uploaded.
$occupationalSickLeaveHistory = array(new \SynergiTech\Staffology\Model\OccupationalSickLeaveHistory()); // \SynergiTech\Staffology\Model\OccupationalSickLeaveHistory[]
try {
$result = $apiInstance->uploadOSPHistoryOccupationalSickLeaveHistory($employerId, $occupationalSickLeaveHistory);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling OccupationalSickLeaveHistoryApi->uploadOSPHistoryOccupationalSickLeaveHistory: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
employerId | string | The Id of the Employer to which the occupational sick leave history is to be uploaded. | |
occupationalSickLeaveHistory | \SynergiTech\Staffology\Model\OccupationalSickLeaveHistory[] | [optional] |
\SynergiTech\Staffology\Model\Item[]
- Content-Type:
application/json-patch+json
,application/json
,text/json
,application/*+json
- Accept:
text/plain
,application/json
,text/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]