# 获取积分活动列表
请求方式:POST
请求地址:https://$basehost/gateway/eaopen/GetPointsPlanList
body参数:
{
"offset": 0,
"limit": 10
}
字段 | 类型 | 必填 | 说明 |
---|---|---|---|
offset | int | 是 | 每次获取的的开始位置,最小值为0 |
limit | int | 是 | 每次获取的条数,取值范围(1~100) |
返回值:
{
"data": {
"has_more": true,
"list": [
{
"name": "name",
"plan_id": "planId123",
"status": 1
}
]
},
"errcode": 0,
"errmsg": "",
"hint": ""
}
返回说明
字段 | 类型 | 说明 |
---|---|---|
errcode | int | 状态码,0为正常,非0代表错误 |
errmsg | string | 错误信息 |
data | json | json返回值 |
has_more | bool | 是否还有更多 |
list | array | 活动列表 |
hint | string | 请求日志ID |
list数据结构
字段 | 类型 | 说明 |
---|---|---|
name | string | 活动名称 |
plan_id | string | 活动ID |
status | int | 活动状态: 1-开启, 2-关闭 |
完整请求示例:
curl -X POST \
https://$basehost/gateway/eaopen/GetPointsPlanList \
-H 'Content-Type: application/json; charset=UTF-8' \
-H 'Token: c2NdxDHKXIJ5j1zrhJeq2eJEHjh9xxx' \
-d '{
"offset": 0,
"limit": 10
}'
← 群积分修改 获取积分变动流水列表 →