Beispiel #1
0
def sample_delete_webhook():
    # Create a client
    client = dialogflowcx_v3beta1.WebhooksClient()

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

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

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

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

    # Handle the response
    print(response)
Beispiel #3
0
def sample_list_webhooks():
    # Create a client
    client = dialogflowcx_v3beta1.WebhooksClient()

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

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

    # Handle the response
    for response in page_result:
        print(response)
Beispiel #4
0
def sample_update_webhook():
    # Create a client
    client = dialogflowcx_v3beta1.WebhooksClient()

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

    request = dialogflowcx_v3beta1.UpdateWebhookRequest(webhook=webhook, )

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

    # Handle the response
    print(response)