说明
成功返回示例:
{
"res":"succ",
"data":
{
"total":xxxx, //当前帐号剩余可用短信条数
"packages":[
{
"package_id": "xxxxxxxxxxx", //生成的资源包id
"resource": xxxx, //资源包类型
"tag":xxxx, //资源包tag
"amount": xxxxx, //资源包总条数
"remain": xxxxx, //当前资源包剩余条数
"create_time": xxxxx, //资源包添加时间
"start_time": xxxxx, //资源包生效时间
"expire_time": xxxxx, //资源包过期时间
"consumers": ["product_id1","product_id2"], //允许消费此资源包的产品ID
"data":"{"xxxxxx":"xxxx"}"
"meta":"{"xxxxxx":"xxxx","xxxxxx":"xxxx"}"
},
{
"package_id": "xxxxxxxxxxx", //生成的资源包id
"resource": xxxx, //资源包类型
"tag":xxxx, //资源包tag
"amount": xxxxx, //资源包总条数
"remain": xxxxx, //当前资源包剩余条数
"create_time": xxxxx, //资源包添加时间
"start_time": xxxxx, //资源包生效时间
"expire_time": xxxxx, //资源包过期时间
"consumers": ["product_id1","product_id2"], //允许消费此资源包的产品ID
"data":"{"xxxxxx":"xxxx"}"
"meta":"{"xxxxxx":"xxxx","xxxxxx":"xxxx"}"
},
]
}
失败返回示例:
{
"res": "error",
"msgid": "xxxxxxxxxxx",
"code": "400",
"msg": "account is not exist, 请求的帐号不存在."
}