All URIs are relative to https://api.flipdish.co
| Method | HTTP request | Description |
|---|---|---|
| getStoreOrderCapacity | GET /api/v1.0/{appId}/storeordercapacity/{storeId}/{deliveryType} | |
| updateStoreOrderCapacityConfig | POST /api/v1.0/{appId}/storeordercapacity/{storeId} |
\Flipdish\Client\Models\RestApiResultStoreOrderCapacityConfig getStoreOrderCapacity($app_id, $store_id, $delivery_type)
<?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\StoreOrderCapacityApi(
// 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
);
$app_id = "app_id_example"; // string |
$store_id = 56; // int |
$delivery_type = "delivery_type_example"; // string |
try {
$result = $apiInstance->getStoreOrderCapacity($app_id, $store_id, $delivery_type);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling StoreOrderCapacityApi->getStoreOrderCapacity: ', $e->getMessage(), PHP_EOL;
}
?>| Name | Type | Description | Notes |
|---|---|---|---|
| app_id | string | ||
| store_id | int | ||
| delivery_type | string |
\Flipdish\Client\Models\RestApiResultStoreOrderCapacityConfig
- Content-Type: Not defined
- Accept: application/json, text/json, application/xml, text/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
updateStoreOrderCapacityConfig($store_id, $delivery_type, $new_order_capacity_config, $app_id)
<?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\StoreOrderCapacityApi(
// 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 |
$delivery_type = "delivery_type_example"; // string |
$new_order_capacity_config = new \Flipdish\\Client\Models\StoreOrderCapacityConfigEditModel(); // \Flipdish\\Client\Models\StoreOrderCapacityConfigEditModel |
$app_id = "app_id_example"; // string |
try {
$apiInstance->updateStoreOrderCapacityConfig($store_id, $delivery_type, $new_order_capacity_config, $app_id);
} catch (Exception $e) {
echo 'Exception when calling StoreOrderCapacityApi->updateStoreOrderCapacityConfig: ', $e->getMessage(), PHP_EOL;
}
?>| Name | Type | Description | Notes |
|---|---|---|---|
| store_id | int | ||
| delivery_type | string | ||
| new_order_capacity_config | \Flipdish\Client\Models\StoreOrderCapacityConfigEditModel | ||
| app_id | string |
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]