All URIs are relative to https://api.flipdish.co
| Method | HTTP request | Description |
|---|---|---|
| addOrderAuditLog | POST /api/v1.0/auditlogs/orders/{orderId} | |
| addStoreAuditLogEvent | POST /api/v1.0/auditlogs/stores/{storeId} |
addOrderAuditLog($order_id, $external_event_create)
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: oauth2
$config = Flipdish\\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Flipdish\\Client\Api\AuditLogsApi(
// 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
);
$order_id = 56; // int |
$external_event_create = array(new \Flipdish\\Client\Models\ExternalStoreAuditLog()); // \Flipdish\\Client\Models\ExternalStoreAuditLog[] |
try {
$apiInstance->addOrderAuditLog($order_id, $external_event_create);
} catch (Exception $e) {
echo 'Exception when calling AuditLogsApi->addOrderAuditLog: ', $e->getMessage(), PHP_EOL;
}
?>| Name | Type | Description | Notes |
|---|---|---|---|
| order_id | int | ||
| external_event_create | \Flipdish\Client\Models\ExternalStoreAuditLog[] |
void (empty response body)
- Content-Type: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
- Accept: application/json, text/json, application/xml, text/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
addStoreAuditLogEvent($store_id, $external_event_create)
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: oauth2
$config = Flipdish\\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Flipdish\\Client\Api\AuditLogsApi(
// 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
);
$store_id = 56; // int |
$external_event_create = array(new \Flipdish\\Client\Models\ExternalStoreAuditLog()); // \Flipdish\\Client\Models\ExternalStoreAuditLog[] |
try {
$apiInstance->addStoreAuditLogEvent($store_id, $external_event_create);
} catch (Exception $e) {
echo 'Exception when calling AuditLogsApi->addStoreAuditLogEvent: ', $e->getMessage(), PHP_EOL;
}
?>| Name | Type | Description | Notes |
|---|---|---|---|
| store_id | int | ||
| external_event_create | \Flipdish\Client\Models\ExternalStoreAuditLog[] |
void (empty response body)
- Content-Type: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
- Accept: application/json, text/json, application/xml, text/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]