dujianiu

微信公众号开发之群发消息(三)

public function massSend(){

// $postField=\'{
// "filter":{
// "group_id":"0"
//},
// "text":{
// "content":"您有一个新咨询,请您及时处理"
// },
// "msgtype":"text"
//}\';
$postField=\'{
"filter":{
"is_to_all":false
"group_id":"2"
},
"text":{
"content":"CONTENT"
},
"msgtype":"text"
}\';
$url= \'https://api.weixin.qq.com/cgi-bin/message/mass/sendall?access_token=\'.$this->ACCESS_TOKEN;//群发消息接口
$ret=$this->JsonPost($url, json_encode($postField));
echo json_encode($ret);
}

分类:

技术点:

相关文章:

  • 2021-12-21
  • 2021-11-18
  • 2021-11-21
  • 2021-12-16
  • 2021-05-17
  • 2022-01-10
  • 2021-12-27
猜你喜欢
  • 2021-11-21
  • 2021-04-22
  • 2022-01-25
  • 2021-12-03
相关资源
相似解决方案