v1_webhooks_integration_GetWebhooksIntegration/
v1_webhooks-integration_GetWebhooksIntegration.rs1use datadog_api_client::datadog;
3use datadog_api_client::datadogV1::api_webhooks_integration::WebhooksIntegrationAPI;
4
5#[tokio::main]
6async fn main() {
7 let webhook_name = std::env::var("WEBHOOK_NAME").unwrap();
9 let configuration = datadog::Configuration::new();
10 let api = WebhooksIntegrationAPI::with_config(configuration);
11 let resp = api.get_webhooks_integration(webhook_name.clone()).await;
12 if let Ok(value) = resp {
13 println!("{:#?}", value);
14 } else {
15 println!("{:#?}", resp.unwrap_err());
16 }
17}