你来啦米斯郡
2016-12-26 17:13
public function sendMsgAll(){
//1.获取全局access_token
$access_token = $this->getWxAccessToken();
$url = "https://api.weixin.qq.com/cgi-bin/message/mass/preview?access_token=".$access_token;
//2.组装群发接口数据array
$array = array(
'touser' => 'oZ1_6vjgbZJStTHK1H8kMPSVDJt0',//openid
'text' => array( 'content' => urlencode('爸爸叫你回家吃饭') ),
'msgtype' => 'text'
);
$postJson = urldecode(json_encode($array));
//3.调用curl
$res = $this->http_curl($url,'post','json',$postJson);
var_dump($res);
}
预览接口也有限制吗?
是滴按照正常是100次
PHP微信公众平台开发高级篇—群发接口
18568 学习 · 19 问题
相似问题