接口名称 |
站内投票
web domain
|
地址 |
https://api.cnlive.com/open/api2/vote/voteForInsideV2 |
method |
post |
返回数据 |
json
|
/* Title: 11.8 投票-站内V2 Sort: 118 */
请求方式: POST
返回格式: JSON
请求参数说明:
参数 |
必选 |
类型 |
说明 |
appId |
true |
string |
应用ID |
activityId |
true |
string |
活动ID |
sid |
true |
string |
用户ID+日期yyyyMMdd加密后的 |
subjectId |
true |
string |
主题ID |
tagId |
true |
string |
标签id |
originalAppId |
true |
string |
加密时appId |
userToken |
true |
string |
用户token |
plat |
true |
string |
客户端平台[i:IOS客户端,a:Android客户端] |
返回格式说明:
{
"errorCode":"0",
"errorMessage":"成功"
}
{
"errorCode":"101",
"errorMessage":"参数格式错误"
}
{
"errorCode":"51003",
"errorMessage":"活动未开始"
}
{
"errorCode":"51004",
"errorMessage":"活动已结束"
}
{
"errorCode":"51006",
"errorMessage":"活动或主题不存在"
}
{
"errorCode":"51005",
"errorMessage":"该用户不存在"
}
{
"errorCode":"51007",
"errorMessage":"不是当前日期"
}
{
"errorCode":"51010",
"errorMessage":"token验证失败"
}
{
"errorCode":"51009",
"errorMessage":"请勿重复投票"
}
{
"errorCode":"51012",
"errorMessage":"现在非投票时间,请在每日9:00-21:00投票"
}
{
"errorCode":"51014",
"errorMessage":"您已经使用完今日所有票数"
}
{
"errorCode":"51015",
"errorMessage":"您已经使用完今日的票数,可以选择积分换票或明日再来"
}
{
errorCode:"xxx", //错误代码(非0)
errorMsg:"失败" //错误信息
}