All URIs are relative to https://api.stateset.com/v1, except if the operation defines another base path.
Method | HTTP request | Description |
---|---|---|
deleteCustomers() | DELETE /customers/{id} | Delete customers |
getCustomers() | GET /customers | Get customer by id |
updateCustomers() | PUT /customers/{id} | Update customers |
deleteCustomers($id)
Delete customers
This can only be done by the logged in return.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: main_auth
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new OpenAPI\Client\Api\CustomersApi(
// 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 | The id of the customers that needs to be deleted
try {
$apiInstance->deleteCustomers($id);
} catch (Exception $e) {
echo 'Exception when calling CustomersApi->deleteCustomers: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
id | string | The id of the customers that needs to be deleted |
void (empty response body)
- Content-Type: Not defined
- Accept:
application/problem+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
getCustomers($limit, $offset, $order_direction): \OpenAPI\Client\Model\Customers
Get customer by id
Some description of the operation. You can use Markdown
here.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: api_key
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKey('api_key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api_key', 'Bearer');
// Configure OAuth2 access token for authorization: main_auth
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new OpenAPI\Client\Api\CustomersApi(
// 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
);
$limit = 3.4; // float | The number of items to return
$offset = 3.4; // float | Offset to return customers
$order_direction = 'order_direction_example'; // string | Direction to return customers
try {
$result = $apiInstance->getCustomers($limit, $offset, $order_direction);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling CustomersApi->getCustomers: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
limit | float | The number of items to return | |
offset | float | Offset to return customers | |
order_direction | string | Direction to return customers |
\OpenAPI\Client\Model\Customers
- Content-Type: Not defined
- Accept:
application/json
,application/problem+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
updateCustomers($id, $customers)
Update customers
This can only be done by the logged in user.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: main_auth
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new OpenAPI\Client\Api\CustomersApi(
// 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 | The id that needs to be updated
$customers = new \OpenAPI\Client\Model\Customers(); // \OpenAPI\Client\Model\Customers | Updated customers object
try {
$apiInstance->updateCustomers($id, $customers);
} catch (Exception $e) {
echo 'Exception when calling CustomersApi->updateCustomers: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
id | string | The id that needs to be updated | |
customers | \OpenAPI\Client\Model\Customers | Updated customers object |
void (empty response body)
- Content-Type:
application/json
,application/xml
- Accept:
application/problem+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]