Skip to content

Latest commit

 

History

History
78 lines (51 loc) · 2.9 KB

NotifyMembershipWebviewApi.md

File metadata and controls

78 lines (51 loc) · 2.9 KB

grabfood.NotifyMembershipWebviewApi

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

Method HTTP request Description
notify_membership_webview POST /partner/v1/membership/notify Notify Membership

notify_membership_webview

notify_membership_webview(authorization, content_type, notify_membership_webview_request)

Notify Membership

Example

import grabfood
from grabfood.models.notify_membership_webview_request import NotifyMembershipWebviewRequest
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.NotifyMembershipWebviewApi(api_client)
    authorization = 'Bearer <ACCESS_TOKEN_HERE>' # str | Specify the generated authorization token of the bearer type.
    content_type = 'application/json' # str | The content type of the request body. You must use `application/json` for this header as GrabFood API currently does not support other formats.
    notify_membership_webview_request = grabfood.NotifyMembershipWebviewRequest() # NotifyMembershipWebviewRequest | 

    try:
        # Notify Membership
        api_instance.notify_membership_webview(authorization, content_type, notify_membership_webview_request)
    except Exception as e:
        print("Exception when calling NotifyMembershipWebviewApi->notify_membership_webview: %s\n" % e)

Parameters

Name Type Description Notes
authorization str Specify the generated authorization token of the bearer type.
content_type str The content type of the request body. You must use `application/json` for this header as GrabFood API currently does not support other formats.
notify_membership_webview_request NotifyMembershipWebviewRequest

Return type

void (empty response body)

Authorization

No authorization required

HTTP request headers

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

HTTP response details

Status code Description Response headers
204 Success. No content returned. -
4xx Failed. -

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