小程序创建直播间接口提示200002错误?
发布于 4 年前 作者 min32 14380 次浏览 来自 官方Issues

请求url:https://api.weixin.qq.com/wxaapi/broadcast/room/create?access_token=38_bcvNXtPwj3SHU2y21zYDyprdzm3vsjfRj01kStFJgDRCOXHkXnnHbk2zRWcRYufTedtQAMrLCadvXpvc9ExJO-Yr4rPMv4C2NN8BoQNWwpow6SgKlb0YiCc50Vk6EzNRc2K976ZA6qTSBuVcYQQbADALDD

请求参数:

{

"name": "测试直播房间1",

"coverImg": "9vxXn4yEDSbO1ss3nWFybuVXja1yBwV0sFYW2H",

"starttime": 1604041200000,

"endtime": 1604044800000,

"anchorName": "zefzhang1",

"anchorWechat": "Gloveywj",

"subAnchorWechat": "",

"createrWechat": "Gloveywj",

"shareImg": "9vxXn4yEDSbO1ss3nWFybuVXja1yBwV0sFYW2H",

"feedsImg": "9vxXn4yEDSbO1ss3nWFybuVXja1yBwV0sFYW2H",

"isFeedsPublic": 1,

"type": 1,

"screenType": 0,

"closeLike": 0,

"closeGoods": 0,

"closeComment": 0,

"closeReplay": 1,

"closeShare": 0,

"closeKf": 0

}

返回:

{

    “errmsg”: “parameter startTime or endTime is invalid rid: 5f9bae5f-6fadf8fb-66f19011”,

    “errcode”: 200002

}

请求工具postman

1 回复

startTime和endTime大小写没写对,并且这两个参数应该是以秒为单位,帖子里面传的参数是毫秒。

详细文档见:https://developers.weixin.qq.com/miniprogram/dev/framework/liveplayer/studio-api.html#1

回到顶部