Skip to content

Latest commit

 

History

History
65 lines (44 loc) · 2.47 KB

UpdateMenuNotificationApi.md

File metadata and controls

65 lines (44 loc) · 2.47 KB

Grab\GrabfoodApiSdk\UpdateMenuNotificationApi

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

Method HTTP request Description
updateMenuNotification() POST /partner/v1/merchant/menu/notification Notify Grab of updated menu

updateMenuNotification()

updateMenuNotification($content_type, $authorization, $update_menu_notif_request)

Notify Grab of updated menu

Example

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



$apiInstance = new Grab\GrabfoodApiSdk\Api\UpdateMenuNotificationApi(
    // 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()
);
$content_type = application/json; // string | The content type of the request body. You must use `application/json` for this header as GrabFood API currently does not support other formats.
$authorization = Bearer <ACCESS_TOKEN_HERE>; // string | Specify the generated authorization token of the bearer type.
$update_menu_notif_request = new \Grab\GrabfoodApiSdk\Model\UpdateMenuNotifRequest(); // \Grab\GrabfoodApiSdk\Model\UpdateMenuNotifRequest | 

try {
    $apiInstance->updateMenuNotification($content_type, $authorization, $update_menu_notif_request);
} catch (Exception $e) {
    echo 'Exception when calling UpdateMenuNotificationApi->updateMenuNotification: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
content_type string The content type of the request body. You must use `application/json` for this header as GrabFood API currently does not support other formats.
authorization string Specify the generated authorization token of the bearer type.
update_menu_notif_request \Grab\GrabfoodApiSdk\Model\UpdateMenuNotifRequest

Return type

void (empty response body)

Authorization

No authorization required

HTTP request headers

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

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