All URIs are relative to https://api.jiwa.com.au
Method | HTTP request | Description |
---|---|---|
regionABANDONRequestAbandonDelete | DELETE /Regions/Abandon | Abandons a stateful region. |
regionDELETERequestRegionIDDelete | DELETE /Regions/{RegionID} | Deletes a region. |
regionGETRequestRegionIDGet | GET /Regions/{RegionID} | Retrieves a region. |
regionPATCHRequestRegionIDUpdate | PATCH /Regions/{RegionID} | Updates a region. |
regionPOSTRequestPost | POST /Regions | Creates a region. |
regionSAVERequestSaveGet | GET /Regions/Save | Saves a stateful region. |
\Jiwa\Model\Object regionABANDONRequestAbandonDelete($accept, $jiwa_stateful, $region_id)
Abandons a stateful region.
Requires a request header of 'jiwa-stateful' be set to 'true', and also that a stateful region exists.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: basic
$config = Jiwa\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
$apiInstance = new Jiwa\Api\RegionsApi(
// 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
);
$accept = "accept_example"; // string | Accept Header
$jiwa_stateful = true; // bool | Stateful indicator
$region_id = "region_id_example"; // string |
try {
$result = $apiInstance->regionABANDONRequestAbandonDelete($accept, $jiwa_stateful, $region_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling RegionsApi->regionABANDONRequestAbandonDelete: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
accept | string | Accept Header | |
jiwa_stateful | bool | Stateful indicator | [optional] |
region_id | string | [optional] |
- Content-Type: application/x-www-form-urlencoded, application/json, application/xml
- Accept: application/json, application/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Jiwa\Model\Object regionDELETERequestRegionIDDelete($accept, $region_id, $jiwa_stateful)
Deletes a region.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: basic
$config = Jiwa\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
$apiInstance = new Jiwa\Api\RegionsApi(
// 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
);
$accept = "accept_example"; // string | Accept Header
$region_id = "region_id_example"; // string |
$jiwa_stateful = true; // bool | Stateful indicator
try {
$result = $apiInstance->regionDELETERequestRegionIDDelete($accept, $region_id, $jiwa_stateful);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling RegionsApi->regionDELETERequestRegionIDDelete: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
accept | string | Accept Header | |
region_id | string | ||
jiwa_stateful | bool | Stateful indicator | [optional] |
- Content-Type: application/x-www-form-urlencoded, application/json, application/xml
- Accept: application/json, application/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Jiwa\Model\Region regionGETRequestRegionIDGet($accept, $region_id, $jiwa_stateful)
Retrieves a region.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: basic
$config = Jiwa\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
$apiInstance = new Jiwa\Api\RegionsApi(
// 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
);
$accept = "accept_example"; // string | Accept Header
$region_id = "region_id_example"; // string |
$jiwa_stateful = true; // bool | Stateful indicator
try {
$result = $apiInstance->regionGETRequestRegionIDGet($accept, $region_id, $jiwa_stateful);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling RegionsApi->regionGETRequestRegionIDGet: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
accept | string | Accept Header | |
region_id | string | ||
jiwa_stateful | bool | Stateful indicator | [optional] |
- Content-Type: application/x-www-form-urlencoded, application/json, application/xml
- Accept: application/json, application/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Jiwa\Model\Region regionPATCHRequestRegionIDUpdate($accept, $region_id, $jiwa_stateful, $name, $is_default, $description, $created_date_time, $last_saved_date_time, $created_by_staff, $last_saved_by_staff, $body)
Updates a region.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: basic
$config = Jiwa\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
$apiInstance = new Jiwa\Api\RegionsApi(
// 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
);
$accept = "accept_example"; // string | Accept Header
$region_id = "region_id_example"; // string |
$jiwa_stateful = true; // bool | Stateful indicator
$name = "name_example"; // string |
$is_default = true; // bool |
$description = "description_example"; // string |
$created_date_time = new \DateTime("2013-10-20T19:20:30+01:00"); // \DateTime |
$last_saved_date_time = new \DateTime("2013-10-20T19:20:30+01:00"); // \DateTime |
$created_by_staff = "created_by_staff_example"; // string |
$last_saved_by_staff = "last_saved_by_staff_example"; // string |
$body = new \Jiwa\Model\RegionPATCHRequest(); // \Jiwa\Model\RegionPATCHRequest |
try {
$result = $apiInstance->regionPATCHRequestRegionIDUpdate($accept, $region_id, $jiwa_stateful, $name, $is_default, $description, $created_date_time, $last_saved_date_time, $created_by_staff, $last_saved_by_staff, $body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling RegionsApi->regionPATCHRequestRegionIDUpdate: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
accept | string | Accept Header | |
region_id | string | ||
jiwa_stateful | bool | Stateful indicator | [optional] |
name | string | [optional] | |
is_default | bool | [optional] | |
description | string | [optional] | |
created_date_time | \DateTime | [optional] | |
last_saved_date_time | \DateTime | [optional] | |
created_by_staff | string | [optional] | |
last_saved_by_staff | string | [optional] | |
body | \Jiwa\Model\RegionPATCHRequest | [optional] |
- Content-Type: application/x-www-form-urlencoded, application/json, application/xml
- Accept: application/json, application/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Jiwa\Model\Region regionPOSTRequestPost($accept, $jiwa_stateful, $name, $is_default, $description, $created_date_time, $created_by_staff, $last_saved_by_staff, $body)
Creates a region.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: basic
$config = Jiwa\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
$apiInstance = new Jiwa\Api\RegionsApi(
// 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
);
$accept = "accept_example"; // string | Accept Header
$jiwa_stateful = true; // bool | Stateful indicator
$name = "name_example"; // string |
$is_default = true; // bool |
$description = "description_example"; // string |
$created_date_time = new \DateTime("2013-10-20T19:20:30+01:00"); // \DateTime |
$created_by_staff = "created_by_staff_example"; // string |
$last_saved_by_staff = "last_saved_by_staff_example"; // string |
$body = new \Jiwa\Model\RegionPOSTRequest(); // \Jiwa\Model\RegionPOSTRequest |
try {
$result = $apiInstance->regionPOSTRequestPost($accept, $jiwa_stateful, $name, $is_default, $description, $created_date_time, $created_by_staff, $last_saved_by_staff, $body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling RegionsApi->regionPOSTRequestPost: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
accept | string | Accept Header | |
jiwa_stateful | bool | Stateful indicator | [optional] |
name | string | [optional] | |
is_default | bool | [optional] | |
description | string | [optional] | |
created_date_time | \DateTime | [optional] | |
created_by_staff | string | [optional] | |
last_saved_by_staff | string | [optional] | |
body | \Jiwa\Model\RegionPOSTRequest | [optional] |
- Content-Type: application/x-www-form-urlencoded, application/json, application/xml
- Accept: application/json, application/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Jiwa\Model\Region regionSAVERequestSaveGet($accept, $jiwa_stateful, $region_id)
Saves a stateful region.
Requires a request header of 'jiwa-stateful' be set to 'true', and also that a stateful region exists.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: basic
$config = Jiwa\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
$apiInstance = new Jiwa\Api\RegionsApi(
// 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
);
$accept = "accept_example"; // string | Accept Header
$jiwa_stateful = true; // bool | Stateful indicator
$region_id = "region_id_example"; // string |
try {
$result = $apiInstance->regionSAVERequestSaveGet($accept, $jiwa_stateful, $region_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling RegionsApi->regionSAVERequestSaveGet: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
accept | string | Accept Header | |
jiwa_stateful | bool | Stateful indicator | [optional] |
region_id | string | [optional] |
- Content-Type: application/x-www-form-urlencoded, application/json, application/xml
- Accept: application/json, application/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]