7. 滞留量接口

7.1. 整个大楼的当前滞留人数

Verb: GET
Path: api/v1/retention/floordata
Header: (authorization, {$atoken})
Request Params:
  • mall_id:广场唯一编码,示例:d03ab9dc-9e78-11eb-a328-0017fa03adf3,
  • startTime:开始时间,精确到时分秒,示例:2021-06-01 16:00:00,
  • endTime:结束时间,精确到时分秒,示例:2021-06-01 16:10:00,
Response Body:
{
  msg_code: 200,
  msg_info: "成功"
  data: [
        {
          unid: d03ab9dc-9e78-11eb-a328-0017fa03adf3,                                               
          name: "迅达",      
          innum: "0",                  
          outnum: 0,                                                
          counttime: 2021-05-31 09:55:59,                                                 
          retention: "144",                       
        },
  ]
}

7.2. 楼层的当前滞留人数

Verb: GET
Path: api/v1/retention/floorgatedata
Header: (authorization, {$atoken})
Request Params:
  • mall_id:广场(门店)唯一编码。示例:8734758a-e0b0-11e8-b6e8-7cd30ac4c9a6
  • Floor_id:楼层唯一编码(可多个,中间用逗号隔开)示例:0b51c364-9e86-11eb-bc06-0017fa03adf3,0b51c364-9e86-11eb-bc06-0017fa03adf3,
  • startTime:开始时间,精确到时分秒,示例:2021-06-01 16:00:00”,
  • endTime: 结束时间,精确到时分秒,示例:2021-06-01 16:10:00
Response Body:
{
  msg_code: 200,
  msg_info: "成功"
  data: [
        {
          unid: 0b51c364-9e86-11eb-bc06-0017fa03adf3,                                                
          name: "3F",      
          innum: "1",                
          outnum: 0,                                                 
          counttime: "2018-07-31 14:55:54",                         
          retention: "50",                   
        },
  ]
}

7.3. 区域的当前滞留人数

根据门店unid以及开始日期、结束日期获取期间的天汇总人脸客流数据。

Verb: GET
Path: api/v1/retention/zonegatedata
Header: (authorization, {$atoken})
Request Params:
  • mall_id:广场唯一编码,示例:d03ab9dc-9e78-11eb-a328-0017fa03adf3
  • zone_id:区域唯一编码(可多个,中间用逗号隔开),示例:b19e95b8-b3ca-11eb-a06c-0017fa03adf3,b19e95b8-b3ca-11eb-a06c-0017fa03adf3
  • startDate:数据开始日期。示例:”2019-01-01”,
  • endDate: 数据结束日期。示例:”2019-01-20”
Response Body:
{
        msg_code: 200,
        msg_info: "成功",
        data: [
        {
                unid: "83c2266f-a29b-478a-8a59-2ed54e144641",                          
                name:"TC南侧楼梯间",                                              
                innum: "1",                                                     
                outnum: "0",                                                    
                counttime: "2021-06-01 15:45:59",                                                   
                retention: "1",                                                   

        },
        ... ...
        ]
}