All URIs are relative to https://api.stateset.com/v1, except if the operation defines another base path.
Method | HTTP request | Description |
---|---|---|
createNote() | POST /notes | Create a new note |
deleteInventoryItem() | DELETE /inventoryitems/{id} | Delete Inventory Items |
deleteNotes() | DELETE /notes/{id} | Delete notes |
getCustomersById() | GET /customers/{id} | Get customers by id |
getNotes() | GET /notes | Get notes |
getNotesById() | GET /notes/{id} | Get notes by id |
updateNotes() | PUT /notes/{id} | Updated notes |
createNote($notes)
Create a new note
Create a new note. This can only be done by the logged in.
<?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\NotesApi(
// 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
);
$notes = new \OpenAPI\Client\Model\Notes(); // \OpenAPI\Client\Model\Notes | Created note object
try {
$apiInstance->createNote($notes);
} catch (Exception $e) {
echo 'Exception when calling NotesApi->createNote: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
notes | \OpenAPI\Client\Model\Notes | Created note 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]
deleteInventoryItem($id)
Delete Inventory Items
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\NotesApi(
// 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 inventory items that needs to be deleted
try {
$apiInstance->deleteInventoryItem($id);
} catch (Exception $e) {
echo 'Exception when calling NotesApi->deleteInventoryItem: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
id | string | The id of the inventory items 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]
deleteNotes($id)
Delete notes
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\NotesApi(
// 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 notes that needs to be deleted
try {
$apiInstance->deleteNotes($id);
} catch (Exception $e) {
echo 'Exception when calling NotesApi->deleteNotes: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
id | string | The id of the notes 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]
getCustomersById($id): \OpenAPI\Client\Model\Customers
Get customers 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\NotesApi(
// 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 fetched
try {
$result = $apiInstance->getCustomersById($id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling NotesApi->getCustomersById: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
id | string | The id that needs to be fetched |
\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]
getNotes($limit, $offset, $order_direction): \OpenAPI\Client\Model\Notes
Get notes
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\NotesApi(
// 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 | Filter users without email
$order_direction = 'order_direction_example'; // string | Direction to return accounts
try {
$result = $apiInstance->getNotes($limit, $offset, $order_direction);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling NotesApi->getNotes: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
limit | float | The number of items to return | |
offset | float | Filter users without email | |
order_direction | string | Direction to return accounts |
- Content-Type: Not defined
- Accept:
application/json
,application/problem+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
getNotesById($id): \OpenAPI\Client\Model\Notes
Get notes 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\NotesApi(
// 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 fetched
try {
$result = $apiInstance->getNotesById($id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling NotesApi->getNotesById: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
id | string | The id that needs to be fetched |
- Content-Type: Not defined
- Accept:
application/json
,application/problem+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
updateNotes($id, $notes)
Updated notes
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\NotesApi(
// 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
$notes = new \OpenAPI\Client\Model\Notes(); // \OpenAPI\Client\Model\Notes | Updated notes object
try {
$apiInstance->updateNotes($id, $notes);
} catch (Exception $e) {
echo 'Exception when calling NotesApi->updateNotes: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
id | string | The id that needs to be updated | |
notes | \OpenAPI\Client\Model\Notes | Updated notes 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]