Exemple #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)
Exemple #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)
Exemple #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)
Exemple #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)