async def sample_delete_webhook(): # Create a client client = dialogflowcx_v3.WebhooksAsyncClient() # Initialize request argument(s) request = dialogflowcx_v3.DeleteWebhookRequest(name="name_value", ) # Make the request await client.delete_webhook(request=request)
async def sample_get_webhook(): # Create a client client = dialogflowcx_v3.WebhooksAsyncClient() # Initialize request argument(s) request = dialogflowcx_v3.GetWebhookRequest(name="name_value", ) # Make the request response = await client.get_webhook(request=request) # Handle the response print(response)
async def sample_list_webhooks(): # Create a client client = dialogflowcx_v3.WebhooksAsyncClient() # Initialize request argument(s) request = dialogflowcx_v3.ListWebhooksRequest(parent="parent_value", ) # Make the request page_result = client.list_webhooks(request=request) # Handle the response async for response in page_result: print(response)
async def sample_update_webhook(): # Create a client client = dialogflowcx_v3.WebhooksAsyncClient() # 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 = await client.update_webhook(request=request) # Handle the response print(response)