Skip to content

Latest commit

 

History

History
79 lines (52 loc) · 2.49 KB

GetStoreHourApi.md

File metadata and controls

79 lines (52 loc) · 2.49 KB

grabfood.GetStoreHourApi

All URIs are relative to https://partner-api.grab.com/grabfood-sandbox

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

get_store_hour

StoreHourResponse get_store_hour(authorization, merchant_id)

Get Store Hours

Example

import grabfood
from grabfood.models.store_hour_response import StoreHourResponse
from grabfood.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to https://partner-api.grab.com/grabfood-sandbox
# See configuration.py for a list of all supported configuration parameters.
configuration = grabfood.Configuration(
    host = "https://partner-api.grab.com/grabfood-sandbox"
)


# Enter a context with an instance of the API client
with grabfood.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = grabfood.GetStoreHourApi(api_client)
    authorization = 'Bearer <ACCESS_TOKEN_HERE>' # str | Specify the generated authorization token of the bearer type.
    merchant_id = '1-CYNGRUNGSBCCC' # str | The merchant's ID that is in GrabFood's database.

    try:
        # Get Store Hours
        api_response = api_instance.get_store_hour(authorization, merchant_id)
        print("The response of GetStoreHourApi->get_store_hour:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling GetStoreHourApi->get_store_hour: %s\n" % e)

Parameters

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

Return type

StoreHourResponse

Authorization

No authorization required

HTTP request headers

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

HTTP response details

Status code Description Response headers
200 Success -
401 Unauthorized. The access token is invalid. -
5XX All other unexpected errors. -

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