Skip to content

Latest commit

 

History

History
64 lines (43 loc) · 1.97 KB

GetStoreHourApi.md

File metadata and controls

64 lines (43 loc) · 1.97 KB

Grab\GrabfoodApiSdk\GetStoreHourApi

All URIs are relative to https://partner-api.grab.com/grabfood-sandbox, except if the operation defines another base path.

Method HTTP request Description
getStoreHour() GET /partner/v2/merchants/{merchantID}/store/hours Get Store Hours

getStoreHour()

getStoreHour($authorization, $merchant_id): \Grab\GrabfoodApiSdk\Model\StoreHourResponse

Get Store Hours

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');



$apiInstance = new Grab\GrabfoodApiSdk\Api\GetStoreHourApi(
    // 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()
);
$authorization = Bearer <ACCESS_TOKEN_HERE>; // string | Specify the generated authorization token of the bearer type.
$merchant_id = 1-CYNGRUNGSBCCC; // string | The merchant's ID that is in GrabFood's database.

try {
    $result = $apiInstance->getStoreHour($authorization, $merchant_id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling GetStoreHourApi->getStoreHour: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
authorization string Specify the generated authorization token of the bearer type.
merchant_id string The merchant's ID that is in GrabFood's database.

Return type

\Grab\GrabfoodApiSdk\Model\StoreHourResponse

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]