0
我想通过松弛聊天API后,将按照这个格式来传递这样一个信息:松弛API消息格式
*注意*这里注意的字将被打印大胆之前和之后两个星。但是,由于懒散本身考虑*用于格式化单词粗体,所以前后恒星不打印。
我的脚本
$ch = curl_init("https://slack.com/api/chat.postMessage");
$data = http_build_query([
"token" => "*******",
"channel" => '#notifications-test',
"text" => '*Attention* `@channel` - Please inform the client. 75% of monthly hours have been used.'
]);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
$result = curl_exec($ch);
请帮