All URIs are relative to http://localhost, except if the operation defines another base path.
| Method | HTTP request | Description |
|---|---|---|
| getEmployerTemplate() | GET /employers/{employerId}/templates/{type} | Get EmployerTemplate |
| indexEmployerTemplate() | GET /employers/{employerId}/templates | List EmployerTemplates |
| updateEmployerTemplate() | PUT /employers/{employerId}/templates/{type} | Update EmployerTemplate |
getEmployerTemplate($employerId, $type): \SynergiTech\Staffology\Model\EmployerTemplateGet EmployerTemplate
Gets the EmployerTemplate specified by the Type.
<?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\EmployerTemplateApi(
// 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 EmployerTemplate belongs.
$type = new \SynergiTech\Staffology\Model\\SynergiTech\Staffology\Model\EmployerTemplateType(); // \SynergiTech\Staffology\Model\EmployerTemplateType | The EmployerTemplateType you want to retrieve.
try {
$result = $apiInstance->getEmployerTemplate($employerId, $type);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling EmployerTemplateApi->getEmployerTemplate: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| employerId | string | The Id of the Employer to which the EmployerTemplate belongs. | |
| type | \SynergiTech\Staffology\Model\EmployerTemplateType | The EmployerTemplateType you want to retrieve. |
\SynergiTech\Staffology\Model\EmployerTemplate
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
indexEmployerTemplate($employerId): \SynergiTech\Staffology\Model\Item[]List EmployerTemplates
Lists all EmployerTemplates for the Employer 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\EmployerTemplateApi(
// 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 for which you want to list Pay Codes
try {
$result = $apiInstance->indexEmployerTemplate($employerId);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling EmployerTemplateApi->indexEmployerTemplate: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| employerId | string | The Id of the Employer for which you want to list Pay Codes |
\SynergiTech\Staffology\Model\Item[]
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
updateEmployerTemplate($employerId, $type, $employerTemplate): \SynergiTech\Staffology\Model\EmployerTemplateUpdate EmployerTemplate
Updates the EmployerTemplate specified by the Type. The only values need to supply are Content and (if applicable) Subject. If these values are empty strings or not provided then the template will revert to the default values.
<?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\EmployerTemplateApi(
// 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 EmployerTemplate belongs.
$type = new \SynergiTech\Staffology\Model\\SynergiTech\Staffology\Model\EmployerTemplateType(); // \SynergiTech\Staffology\Model\EmployerTemplateType
$employerTemplate = new \SynergiTech\Staffology\Model\EmployerTemplate(); // \SynergiTech\Staffology\Model\EmployerTemplate | The EmployerTemplateType you want to retrieve.
try {
$result = $apiInstance->updateEmployerTemplate($employerId, $type, $employerTemplate);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling EmployerTemplateApi->updateEmployerTemplate: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| employerId | string | The Id of the Employer to which the EmployerTemplate belongs. | |
| type | \SynergiTech\Staffology\Model\EmployerTemplateType | ||
| employerTemplate | \SynergiTech\Staffology\Model\EmployerTemplate | The EmployerTemplateType you want to retrieve. | [optional] |
\SynergiTech\Staffology\Model\EmployerTemplate
- Content-Type:
application/*+json,application/json,application/json-patch+json,text/json - Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]