微信公衆號獲取素材列表
話不多說,直接上代碼
/**
* 微信獲取素材
* offset 頁碼
* count 數量
*/
function wxmu(){
$access_token = access_token;
$url = "https://api.weixin.qq.com/cgi-bin/material/batchget_material?access_token=".$access_token;
$data =json_encode(array('type'=>"news","offset" => "6", "count" =>"20"));
$ret = httpUtil($url,$data,'POST');
header("content-type:text/html;charset=utf-8") ;
$ret = json_decode($ret,true);
var_dump($ret);die;
// return $res;die;
}