All URIs are relative to http://localhost, except if the operation defines another base path.
Method | HTTP request | Description |
---|---|---|
acceptInvitation() | POST /invitations/{id} | Accept Invitation |
createInvitation() | POST /employers/{employerId}/invitation | Create Invitation |
deleteInvitation() | DELETE /employers/{employerId}/invitation/{id} | Delete Invitation |
getInvitation() | GET /employers/{employerId}/invitation/{id} | Get Invitation |
indexInvitation() | GET /employers/{employerId}/invitation | List Invitations |
acceptInvitation($id, $acceptInvitation)
Accept Invitation
Accepts the Invitation. The user making this API call must have the email address that the invite was created for and the email address must be verified.
<?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\InvitationApi(
// 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
);
$id = 'id_example'; // string
$acceptInvitation = True; // bool | Set to true to accept the invitation or false to decline it.
try {
$apiInstance->acceptInvitation($id, $acceptInvitation);
} catch (Exception $e) {
echo 'Exception when calling InvitationApi->acceptInvitation: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
id | string | ||
acceptInvitation | bool | Set to true to accept the invitation or false to decline it. | [optional] |
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]
createInvitation($employerId, $autoAccept, $invitation): \SynergiTech\Staffology\Model\Invitation
Create Invitation
Creates a new Invitation for the 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\InvitationApi(
// 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
$autoAccept = True; // bool | This is useful for when you want to invite a user to an employer and automatically accept the invitation.
$invitation = new \SynergiTech\Staffology\Model\Invitation(); // \SynergiTech\Staffology\Model\Invitation
try {
$result = $apiInstance->createInvitation($employerId, $autoAccept, $invitation);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling InvitationApi->createInvitation: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
employerId | string | ||
autoAccept | bool | This is useful for when you want to invite a user to an employer and automatically accept the invitation. | [optional] |
invitation | \SynergiTech\Staffology\Model\Invitation | [optional] |
\SynergiTech\Staffology\Model\Invitation
- Content-Type:
application/json-patch+json
,application/json
,text/json
,application/*+json
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
deleteInvitation($employerId, $id)
Delete Invitation
Deletes the specified Invitation.
<?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\InvitationApi(
// 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
$id = 'id_example'; // string
try {
$apiInstance->deleteInvitation($employerId, $id);
} catch (Exception $e) {
echo 'Exception when calling InvitationApi->deleteInvitation: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
employerId | string | ||
id | string |
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]
getInvitation($employerId, $id): \SynergiTech\Staffology\Model\Invitation
Get Invitation
Gets the Invitation 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\InvitationApi(
// 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 Invitation belongs.
$id = 'id_example'; // string
try {
$result = $apiInstance->getInvitation($employerId, $id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling InvitationApi->getInvitation: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
employerId | string | The Id of the Employer to which the Invitation belongs. | |
id | string |
\SynergiTech\Staffology\Model\Invitation
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
indexInvitation($employerId): \SynergiTech\Staffology\Model\Item[]
List Invitations
Lists all Invitations for an Employer. Only unaccepted Invitations are listed as they are deleted once they've been accepted.
<?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\InvitationApi(
// 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->indexInvitation($employerId);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling InvitationApi->indexInvitation: ', $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]