Skip to content

Latest commit

 

History

History
121 lines (85 loc) · 4.23 KB

File metadata and controls

121 lines (85 loc) · 4.23 KB

Flipdish\Client\StoreOrderCapacityApi

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}

getStoreOrderCapacity

\Flipdish\Client\Models\RestApiResultStoreOrderCapacityConfig getStoreOrderCapacity($app_id, $store_id, $delivery_type)

Example

<?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;
}
?>

Parameters

Name Type Description Notes
app_id string
store_id int
delivery_type string

Return type

\Flipdish\Client\Models\RestApiResultStoreOrderCapacityConfig

Authorization

oauth2

HTTP request headers

  • 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

updateStoreOrderCapacityConfig($store_id, $delivery_type, $new_order_capacity_config, $app_id)

Example

<?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;
}
?>

Parameters

Name Type Description Notes
store_id int
delivery_type string
new_order_capacity_config \Flipdish\Client\Models\StoreOrderCapacityConfigEditModel
app_id string

Return type

void (empty response body)

Authorization

oauth2

HTTP request headers

  • 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]