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);
請幫