接口说明
开发者实时控制红包活动抽奖的开启和关闭。注意活动抽奖开关只在红包活动有效期之内才能生效,如果不能确定红包活动有效期,请尽量将红包活动有效期的范围设置大。
接口调用说明
服务器端调用
http请求方式: Get
URL:https://api.weixin.qq.com/shakearound/lottery/setlotteryswitch?access_token=ACCESSTOKEN&lottery_id=LOTTERYID&onoff=1
请求参数说明
参数 | 类型 | 说明 |
access_token | string | accesstoken,以参数的形式拼装在url后 |
lottery_id | string | 红包抽奖id,来自addlotteryinfo返回的lottery_id |
onoff | int | 活动抽奖开关,0:关闭,1:开启 |
返回数据说明
参数 | 类型 | 说明 |
errcode | int | 错误码。0为成功,其他为失败。详细请参考错误码表 |
errmsg | string | 错误信息 |
示例
{
"errcode":0,
"errmsg":""
}