获取指定用户的访问明细
使用此功能前需要开通用户明细、用户管理功能,同时还需要做第三方登录定制或进行微信服务号授权
接口
GET /api/v3/agent/:id/user/:userId/stats/visits授权
Authorization: Bearer <accessToken>
Content-Type: application/json参数
参数
类型
参数位置
描述
是否必传
请求样例
响应
参数
类型
描述
最后更新于
这有帮助吗?
使用此功能前需要开通用户明细、用户管理功能,同时还需要做第三方登录定制或进行微信服务号授权
GET /api/v3/agent/:id/user/:userId/stats/visitsAuthorization: Bearer <accessToken>
Content-Type: application/json最后更新于
这有帮助吗?
这有帮助吗?
curl 'shangzhibo.tv/api/v3/agent/105131/user/15460259/stats/visits?page=1&pageSize=10' \
-H 'authorization: bearer <accessToken>'{
"pager":{
"page":1,
"pageSize":10,
"total":2
},
"items":[{
"activity":{
"isArchived":false,
"isPushing":false,
"id":"10096289",
"agentId":105131,
"subagentId":null,
"name":"这是一场直播",
"status":"disabled",
"startedAt":"2020-06-24T00:00:00.000Z",
"endedAt":"2020-06-24T05:36:51.878Z",
"pushDomain":"push.shangzhibo.tv",
"pullDomain":"play.shangzhibo.tv",
"groupId":-1,
"createdAt":"2020-06-22T03:06:29.000Z",
"updatedAt":"2020-06-24T05:37:26.322Z"
},
"visitAt":"2020-06-24T04:28:02.000Z",
"lastOnlineAt":"2020-06-24T04:28:05.000Z",
"duration":0,
"userId":15460259,
"activityId":"10096289",
"type":"video",
"promoteSign": "hGyAXgwnz7_lcR",
"type": "测试",
}, {
"activity":{
"isArchived":false,
"isPushing":false,
"id":"10096289",
"agentId":105131,
"subagentId":null,
"name":"这是一场直播",
"status":"disabled",
"startedAt":"2020-06-24T00:00:00.000Z",
"endedAt":"2020-06-24T05:36:51.878Z",
"pushDomain":"push.shangzhibo.tv",
"pullDomain":"play.shangzhibo.tv",
"groupId":-1,
"createdAt":"2020-06-22T03:06:29.000Z",
"updatedAt":"2020-06-24T05:37:26.322Z"
},
"visitAt":"2020-06-24T01:40:01.000Z",
"lastOnlineAt":"2020-06-24T01:44:04.000Z",
"duration":4,
"type":"live",
"promoteSign": "hGyAXgwnz7_lcR",
"type": "测试",
"userId":15460259,
"activityId":"10096289"
}]
}