def sample_delete_webhook():
    # Create a client
    client = dialogflowcx_v3.WebhooksClient()

    # Initialize request argument(s)
    request = dialogflowcx_v3.DeleteWebhookRequest(name="name_value", )

    # Make the request
    client.delete_webhook(request=request)
Example #2
0
def sample_get_webhook():
    # Create a client
    client = dialogflowcx_v3.WebhooksClient()

    # Initialize request argument(s)
    request = dialogflowcx_v3.GetWebhookRequest(name="name_value", )

    # Make the request
    response = client.get_webhook(request=request)

    # Handle the response
    print(response)
def sample_list_webhooks():
    # Create a client
    client = dialogflowcx_v3.WebhooksClient()

    # Initialize request argument(s)
    request = dialogflowcx_v3.ListWebhooksRequest(parent="parent_value", )

    # Make the request
    page_result = client.list_webhooks(request=request)

    # Handle the response
    for response in page_result:
        print(response)
def sample_update_webhook():
    # Create a client
    client = dialogflowcx_v3.WebhooksClient()

    # Initialize request argument(s)
    webhook = dialogflowcx_v3.Webhook()
    webhook.generic_web_service.uri = "uri_value"
    webhook.display_name = "display_name_value"

    request = dialogflowcx_v3.UpdateWebhookRequest(webhook=webhook, )

    # Make the request
    response = client.update_webhook(request=request)

    # Handle the response
    print(response)