跳到主要内容

策略赠予列表

GET/research/gifts在线调试
GET https://api.shengkezhi.com/open/v1/research/gifts
等效 curl
curl "https://api.shengkezhi.com/open/v1/research/gifts" \
  -H "Authorization: Bearer sk_xxx"

GET /research/gifts — 策略赠予列表。

需在请求头携带 Authorization: Bearer sk_xxx

响应 data

字段类型必填说明
itemsGiftView[]本人发出、尚未过期的赠予码,按创建时间倒序。

调用示例

curl -X GET "https://api.shengkezhi.com/open/v1/research/gifts" \
-H "Authorization: Bearer sk_xxx"
{
"code": 0,
"data": {
"items": [
{
"claimed": 1,
"created_at": "示例值",
"expires_at": "示例值",
"gift_code": "GIFT-8K3M2P",
"max_claims": 1,
"strategy_codes": [
"示例值"
],
"ttl_days": 1,
"unavailable_strategy_codes": [
"示例值"
]
}
]
},
"msg": "ok"
}