{"name":"\u6d4b\u8bd5","coverImg":"SJCU8OIK-mqIhiudS_seUd70NbsKNARb8Z9oBayikkivT0VrNTRh_o5NRSBw_gXc","startTime":1590567733,"endTime":1590582133,"anchorName":"\u5764\u54e5","anchorWechat":"ylxw1234","anchorImg":"xjegOQF831gt-iatd3K5UJB3VgGcIVe8GlzFdyQ_MZWBB4fDnBZk_axh7t51JNnk","type":0,"screenType":0,"closeLike":0,"closeGoods":0,"closeComment":0}
麻烦提供给一下appid
官方给个回应啊 这都多久了 私聊也不回
发现文档上的错误
不知道解决了没有?
今天在做这个接口,也一样的错误
虽然看不太懂是怎么回事,但是我看着快要解决了
遇到同样的问题:
一直提示:parameter startTime or endTime is invalid
我是从公众管理后台粘贴的时间,后台可以创建成功,用接口报错
"startTime": 1588237130 // 直播计划开始时间,1.开播时间需在当前时间10min后,2.开始时间不能在6个月后 "endTime": 1588237130 //直播计划结束时间,1.开播时间和结束时间间隔不得短于30min,不得超过24小时
看看时间是否符合规则
请求链接 https://api.weixin.qq.com/wxaapi/broadcast/room/create?access_token=42_HbAFRGtGzllskau6Q5ehuE-kWHExDWIDKEtb03MwQSKzP6S6x0JXoE82V2GWW2JuEKo0Ho-zy0w9HYuqzwRso6L1shIHF-QWz_xgK0Usg9yD5e_quxx9V141mEbYBgeDH1TJ-DACep2QWVc7ZOPeAIAHWX
请求参数: {
"coverImg":"YfAAAuba4mcHY5qaAdx0QlcWr9r3rgAF2fR5kRTp_UO0jpCLoZZUo3NzEVpk1iNE",
"closeGoods":"1",
"closeLike":"1",
"name":"袁虎",
"startTime":"9832948357",
"endTime":"1615275918",
"type":"1",
"anchorName":"Yh?",
"shareImg":"YfAAAuba4mcHY5qaAdx0QlcWr9r3rgAF2fR5kRTp_UO0jpCLoZZUo3NzEVpk1iNE",
"closeComment":"1",
"anchorWechat":"yuanhu1117"
}
响应头: {Accept=application/json, Cache-Control=no-cache, Pragma=no-cache, Content-Type=application/json ; charset=utf-8}
响应信息: {"errmsg":"parameter startTime or endTime is invalid rid: 6046f0bb-34e4b719-45a1e2ff","errcode":200002}
哥们 求解
/** * POST请求-简单数据 * @param $url * @param $data * @return mixed */ private function _requestPost($url,$data){ $headerArray =array("Content-type:application/json;charset='utf-8'","Accept:application/json"); $curl = curl_init(); curl_setopt($curl, CURLOPT_URL, $url); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt($curl, CURLOPT_SSL_VERIFYHOST,FALSE); curl_setopt($curl, CURLOPT_POST, 1); curl_setopt($curl, CURLOPT_POSTFIELDS, json_encode($data)); curl_setopt($curl,CURLOPT_HTTPHEADER,$headerArray); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); $output = curl_exec($curl); curl_close($curl); return json_decode($output,true); }
同样出现这个问题,