#[serial_test::serial]
#[tokio::test]
async fn test_post_message_200_success_default() {
let client = simple_slack_gen::Client::default()
.with_auth("API_TOKEN")
.with_base_url("https://api.sideko-staging.dev/v1/mock/demo/simple-slack/0.2.0");
let res = client
.chat()
.post_message(simple_slack_gen::resources::chat::PostMessageRequest {
data: simple_slack_gen::models::NewMessage {
as_user: Some("string".to_string()),
attachments: Some("string".to_string()),
blocks: Some("string".to_string()),
channel: "channel_id".to_string(),
icon_emoji: Some("string".to_string()),
icon_url: Some("string".to_string()),
link_names: Some(true),
mrkdwn: Some(true),
parse: Some("string".to_string()),
reply_broadcast: Some(true),
text: "Hello World!".to_string(),
thread_ts: Some("string".to_string()),
unfurl_links: Some(true),
unfurl_media: Some(true),
username: Some("string".to_string()),
},
})
.await;
println!("{:?}", res);
assert!(res.is_ok());
}