$data = array( "start"=>0, "limit"=>10 ); $query = http_build_query($data); $options['http'] = array( // 'access_token'=>$access_token, 'timeout'=>60, 'method' => 'POST', 'header' => 'Content-type:application/x-www-form-urlencoded;charset=utf-8', 'content' => $query ); $url = 'https://api.weixin.qq.com/wxa/business/getliveinfo?access_token='.$access_token; $context = stream_context_create($options); $result = file_get_contents($url, false, $context); $resultT = json_decode($result, true); echo $resultT; 执行结果: Array{"errcode":47001,"errmsg":"data format error hint: [q9NUXa09384812]"}
拉取小程序直播房间号的API怎么用?开发文档太简单,有没有PHP版的完整例子? http://api.weixin.qq.com/wxa/business/getliveinfo?access_token= 这个,用不成功
2020-02-28