curl "https://api.scanova.io/campaign/active/user-log/" \
-H "Authorization: 401f7ac837da42b97f613d789819ff93537bee6a"
{
"id": 118,
"is_popup_disabled": false
}
活动
获取您对当前活动的关闭状态
GET /campaign/active/user-log/
GET
/
campaign
/
active
/
user-log
/
curl "https://api.scanova.io/campaign/active/user-log/" \
-H "Authorization: 401f7ac837da42b97f613d789819ff93537bee6a"
{
"id": 118,
"is_popup_disabled": false
}
在 Management API 主机(
将此端点与获取当前有效的评价活动配合使用,以决定是否展示提示:如果存在有效活动,且此调用返回
api.scanova.io)上返回已认证账户针对当前有效 G2 评价活动的日志记录,使用您的原始 Management API 密钥进行身份验证。
GET https://api.scanova.io/campaign/active/user-log/
Authorization: 401f7ac837da42b97f613d789819ff93537bee6a
404 或 is_popup_disabled 为 false,则展示;否则不展示。
curl "https://api.scanova.io/campaign/active/user-log/" \
-H "Authorization: 401f7ac837da42b97f613d789819ff93537bee6a"
{
"id": 118,
"is_popup_disabled": false
}
为何此端点经常返回 404
此端点在两种不同情况下都会返回404,但对调用方而言二者含义相同——“展示弹窗”:
- 当前根本没有正在进行的活动(与
GET /campaign/active/返回404的条件相同)。 - 确实存在有效活动,但该账户尚未记录与其的任何互动——日志记录是延迟创建的,仅在首次调用
POST /campaign/user-log/时创建,而不是在活动开始时自动创建。
相关内容
- 获取当前有效的评价活动——此日志记录所对应的活动。
- 记录弹窗已展示、已关闭或已提交——创建此端点所读取的记录。
- 更新您的活动日志——更新此端点所读取的记录。
- Management API 概览——适用于此端点的身份验证方案和配额规则。
授权
Send your Management API key as the raw value of the Authorization header — no "Bearer " or "Token " prefix, and no other characters. Example: Authorization: 401f7ac837da42b97f613d789819ff93537bee6a. A header containing more than one space-separated part is rejected outright. Requests also require the request's Host header to be the management API host (e.g. api.scanova.io) — the same key sent to the regular API host will not authenticate.
响应
The account's log row for the active campaign.
此页面对您有帮助吗?