Skip to main content
GET
Management API 主机(api.scanova.io)上返回已认证账户针对当前有效 G2 评价活动的日志记录,使用您的原始 Management API 密钥进行身份验证。
将此端点与获取当前有效的评价活动配合使用,以决定是否展示提示:如果存在有效活动,且此调用返回 404is_popup_disabledfalse,则展示;否则不展示。

为何此端点经常返回 404

此端点在两种不同情况下都会返回 404,但对调用方而言二者含义相同——“展示弹窗”:
  • 当前根本没有正在进行的活动(与 GET /campaign/active/ 返回 404 的条件相同)。
  • 确实存在有效活动,但该账户尚未记录与其的任何互动——日志记录是延迟创建的,仅在首次调用 POST /campaign/user-log/ 时创建,而不是在活动开始时自动创建。

相关内容

授权

Authorization
string
header
必填

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.