调用getTemplateLibraryList接口时,返回45076
{“errcode”:45076,“errmsg”:“invalid count hint: [6axFmA01843127]”}
是什么意思
$data = array ( 'count' => 1, 'offset' => 1); //定义参数 $data = http_build_query( $data ); //把参数转换成URL数据 $aContext = array ( 'http' => array ( 'method' => 'POST' , 'content' => $data )); $template_list_url = 'https://api.weixin.qq.com/cgi-bin/wxopen/template/library/list?access_token=' . $access_token . '' ; $cxContext = stream_context_create( $aContext ); $d = file_get_contents ( $template_list_url , false, $cxContext ); print_r( $d ); |