php代码示例
function alertover($title,$content)
{
curl_setopt_array($ch = curl_init(), array(
CURLOPT_URL => "https://api.alertover.com/v1/alert",
CURLOPT_POSTFIELDS => array(
"source" => "s-3527835c-8287-47e9-be00-c62f6588",//发送源
"receiver" => "u-d5af0823-b183-430c-b3cc-58183154",//接受组
"content" => $content,
"title" => $title,
),
CURLOPT_SAFE_UPLOAD => true,
CURLOPT_RETURNTRANSFER =>1,//这里一定要值等于1,否则每次请求接口都会直接在页面相应,(官方文档没写)
));
$res = curl_exec($ch);
curl_close($ch);
}
后台
webwxgetmsgimg.jpeg
接收组
webwxgetmsgimg (1).jpeg
网友评论