v2_microsoft_teams_integration_GetChannelByName/
v2_microsoft-teams-integration_GetChannelByName.rs1use datadog_api_client::datadog;
3use datadog_api_client::datadogV2::api_microsoft_teams_integration::MicrosoftTeamsIntegrationAPI;
4
5#[tokio::main]
6async fn main() {
7 let configuration = datadog::Configuration::new();
8 let api = MicrosoftTeamsIntegrationAPI::with_config(configuration);
9 let resp = api
10 .get_channel_by_name(
11 "tenant_name".to_string(),
12 "team_name".to_string(),
13 "channel_name".to_string(),
14 )
15 .await;
16 if let Ok(value) = resp {
17 println!("{:#?}", value);
18 } else {
19 println!("{:#?}", resp.unwrap_err());
20 }
21}