传统客流数据接口 ------------------ 门店数据 ******************** 本章节所有的门店字样,在商业地产平台中表示为广场。 天级客流 ============== 根据门店的unid以及开始日期、结束提起,获取期间每天的天数据汇总及天气信息。 | ``Verb``: GET | ``Path``: api/v1/passenger/plazaDay | ``Header``: (authorization, {$atoken}) | Request Params: - plaza_unid:广场(门店)唯一编码。示例:8734758a-e0b0-11e8-b6e8-7cd30ac4c9a6 - startDate:数据开始日期。示例:"2019-01-01", - endDate: 数据结束日期。示例:"2019-01-20" | Response Body: .. code-block:: javascript { msg_code: 200, msg_info: "成功", data: [ { plaza_unid: "83c2266f-a29b-478a-8a59-2ed54e144641", //(广场)门店唯一编码 plaza_externalid:"1001001001", //(广场)门店的外部编码 countdate: "2018-01-01", //日期 innum: 100, //进客流 outnum: 100, //出客流 outside_innum: 100, //外部进客流 outside_outnum: 100, //外部出客流 weather : 1, //当天天气信息。天气指标说明参见下表 aqi: 43, //空气指数 ltemp:21.5, //最低温度 htemp:34 //最高温度 }, { plaza_unid: "83c2266f-a29b-478a-8a59-2ed54e144641", plaza_externalid:"1001001001", countdate: "2018-01-02", innum: 100, outnum: 100, outside_innum: 100, outside_outnum: 100, weather : 1, aqi: 43, ltemp:21.5, htemp:34 }, { plaza_unid: "83c2266f-a29b-478a-8a59-2ed54e144641", plaza_externalid:"1001001001", countdate: "2018-01-03", innum: 100, outnum: 100, outside_innum: 100, outside_outnum: 100 } ... ... ] } | 天气指标说明: +--------+-----------------+ | 天气 | 字段值 | +--------+-----------------+ | 晴 | 1 | +--------+-----------------+ | 多云 | 2 | +--------+-----------------+ | 阴 | 3 | +--------+-----------------+ | 阵雨 | 4 | +--------+-----------------+ | 雷阵雨 | 5 | +--------+-----------------+ | 雨夹雪 | 7 | +--------+-----------------+ | 小雨 | 8 | +--------+-----------------+ | 冰雹 | 6 | +--------+-----------------+ | 中雨 | 9 | +--------+-----------------+ | 大雨 | 10 | +--------+-----------------+ | 暴雨 | 11 | +--------+-----------------+ | 阵雪 | 12 | +--------+-----------------+ 增量天级客流 ================== 根据门店的unid以及modifytime获取自modifytime之后更新过的客流数据。 | ``Verb``: GET | ``Path``: api/v1/passenger/increment/plazaDay | ``Header``: (authorization, {$atoken}) | Request Params: - plaza_unid:广场(门店)唯一编码。示例:8734758a-e0b0-11e8-b6e8-7cd30ac4c9a6 - modify_time:数据最后更新时间,示例:"2019-01-01 12:00:00" | Response Body: .. code-block:: javascript { msg_code: 200, msg_info: "成功", data: [ { plaza_unid: "83c2266f-a29b-478a-8a59-2ed54e144641", //(广场)门店唯一编码 plaza_externalid:"1001001001", //(广场)门店的外部编码 countdate: "2018-01-01", //日期 innum: 100, //进客流 outnum: 100, //出客流 outside_innum: 100, //外部进客流 outside_outnum: 100, //外部出客流 modify_time:"2019-01-01 14:00:10" //更新时间 }, { plaza_unid: "83c2266f-a29b-478a-8a59-2ed54e144641", plaza_externalid:"1001001001", countdate: "2018-01-02", innum: 100, outnum: 100, outside_innum: 100, outside_outnum: 100, modify_time:"2019-01-01 14:00:10" }, { plaza_unid: "83c2266f-a29b-478a-8a59-2ed54e144641", plaza_externalid:"1001001001", countdate: "2018-01-03", innum: 100, outnum: 100, outside_innum: 100, outside_outnum: 100, modify_time:"2019-01-01 14:00:10" } ... ... ] } 天级客流(分组) ==================== 根据分组的id以及开始日期、结束日期,获取分组下所有门店在所选时段内的每天的天客流数据。 | ``Verb``: GET | ``Path``: api/v1/passenger/plazaDayByGroupId | ``Header``: (authorization, {$atoken}) | Request Params: - group_id:分组编号。示例:"101", - startDate:数据开始日期。示例:"2019-01-01", - endDate: 数据结束日期。示例:"2019-01-20" | Response Body: .. code-block:: javascript { msg_code: 200, msg_info: "成功", totalNum: 20, data: [ { plaza_unid: "83c2266f-a29b-478a-8a59-2ed54e144641", //(广场)门店唯一编码 plaza_externalid:"1001001001", //(广场)门店的外部编码 group_id:"100110001", //分组id countdate: "2018-01-01", //日期 innum: 100, //进客流 outnum: 100, //出客流 outside_innum: 100, //外部进客流 outside_outnum: 100 //外部出客流 }, { plaza_unid: "83c2266f-a29b-478a-8a59-2ed54e144641", plaza_externalid:"1001001001", group_id:"100110001", countdate: "2018-01-02", innum: 100, outnum: 100, outside_innum: 100, outside_outnum: 100 }, { plaza_unid: "83c2266f-a29b-478a-8a59-2ed54e144641", plaza_externalid:"1001001001", group_id:"100110001", countdate: "2018-01-03", innum: 100, outnum: 100, outside_innum: 100, outside_outnum: 100 } ... ... ] } 增量天级客流(分组) ======================== 根据分组的id及modifytime,获取自modifytime之后更新过的门店客流数据。 | ``Verb``: GET | ``Path``: api/v1/passenger/increment/plazaDayByGroupId | ``Header``: (authorization, {$atoken}) | Request Params: - group_id:分组编号。示例:"101", - modify_time:数据最后更新时间,示例:"2019-01-01 12:00:00" | Response Body: .. code-block:: javascript { msg_code: 200, msg_info: "成功", totalNum: 20, data: [ { plaza_unid: "83c2266f-a29b-478a-8a59-2ed54e144641", //(广场)门店唯一编码 plaza_externalid:"1001001001", //(广场)门店的外部编码 group_id:"100110001", //分组id countdate: "2018-01-01", //日期 innum: 100, //进客流 outnum: 100, //出客流 outside_innum: 100, //外部进客流 outside_outnum: 100, //外部出客流 modify_time:"2019-01-01 14:00:10" //更新时间 }, { plaza_unid: "83c2266f-a29b-478a-8a59-2ed54e144641", plaza_externalid:"1001001001", group_id:"100110001", countdate: "2018-01-02", innum: 100, outnum: 100, outside_innum: 100, outside_outnum: 100, modify_time:"2019-01-01 14:00:10" }, { plaza_unid: "83c2266f-a29b-478a-8a59-2ed54e144641", plaza_externalid:"1001001001", group_id:"100110001", countdate: "2018-01-03", innum: 100, outnum: 100, outside_innum: 100, outside_outnum: 100, modify_time:"2019-01-01 14:00:10" } ... ... ] } 天级客流(全部) =================== 获取全部门店的天客流数据。 | ``Verb``: GET | ``Path``: api/v1/passenger/plazaDayByAccountId | ``Header``: (authorization, {$atoken}) | Request Params: - startDate:数据开始日期。示例:"2019-01-01", - endDate: 数据结束日期。示例:"2019-01-20" | Response Body: .. code-block:: javascript { msg_code: 200, msg_info: "成功", totalNum: 100, data: [ { plaza_unid: "83c2266f-a29b-478a-8a59-2ed54e144641", //(广场)门店唯一编码 plaza_externalid:"1001001001", //(广场)门店的外部编码 group_id:"100110001", //分组id countdate: "2018-01-01", //日期 innum: 100, //进客流 outnum: 100, //出客流 outside_innum: 100, //外部进客流 outside_outnum: 100 //外部出客流 }, { plaza_unid: "83c2266f-a29b-478a-8a59-2ed54e144641", plaza_externalid:"1001001001", group_id:"100110001", countdate: "2018-01-02", innum: 100, outnum: 100, outside_innum: 100, outside_outnum: 100 }, { plaza_unid: "83c2266f-a29b-478a-8a59-2ed54e144641", plaza_externalid:"1001001001", group_id:"100110001", countdate: "2018-01-03", innum: 100, outnum: 100, outside_innum: 100, outside_outnum: 100 } ... ... ] } 增量天级客流(全部) ======================= 根据modifytime获取自modifytime之后更新过的全部门店的天客流数据。 | ``Verb``: GET | ``Path``: api/v1/passenger/increment/plazaDayByAccountId | ``Header``: (authorization, {$atoken}) | Request Params: - modify_time:数据最后更新时间,示例:"2019-01-01 12:00:00" | Response Body: .. code-block:: javascript { msg_code: 200, msg_info: "成功", totalNum: 100, data: [ { plaza_unid: "83c2266f-a29b-478a-8a59-2ed54e144641", //(广场)门店唯一编码 plaza_externalid:"1001001001", //(广场)门店的外部编码 group_id:"100110001", //分组id countdate: "2018-01-01", //日期 innum: 100, //进客流 outnum: 100, //出客流 outside_innum: 100, //外部进客流 outside_outnum: 100, //外部出客流 modify_time:"2019-01-01 14:00:10" //更新时间 }, { plaza_unid: "83c2266f-a29b-478a-8a59-2ed54e144641", plaza_externalid:"1001001001", group_id:"100110001", countdate: "2018-01-02", innum: 100, outnum: 100, outside_innum: 100, outside_outnum: 100, modify_time:"2019-01-01 14:00:10" }, { plaza_unid: "83c2266f-a29b-478a-8a59-2ed54e144641", plaza_externalid:"1001001001", group_id:"100110001", countdate: "2018-01-03", innum: 100, outnum: 100, outside_innum: 100, outside_outnum: 100, modify_time:"2019-01-01 14:00:10" } ... ... ] } 小时级客流 =================== 根据门店unid和日期获取按小时统计的客流数据。 | ``Verb``: GET | ``Path``: api/v1/passenger/plazaHour | ``Header``: (authorization, {$atoken}) | Request Params: - plaza_unid:广场(门店)唯一编码。示例:8734758a-e0b0-11e8-b6e8-7cd30ac4c9a6 - startTime:数据开始时间。示例:"2019-01-01 10:00:00", - endTime: 数据结束时间。示例:"2019-01-01 22:00:00" | Response Body: .. code-block:: javascript { msg_code: 200, msg_info: "成功", totalNum: 100, data: [ { plaza_unid: "83c2266f-a29b-478a-8a59-2ed54e144641", //(广场)门店唯一编码 plaza_externalid:"1001001001", //(广场)门店的外部编码 countdate: "2018-01-01", //日期 counttime: "2018-01-01 10:00:00", //日期时间 counttimez: "2018-01-01T10:00:00+08:00", //带有时区信息的日期时间 innum: 100, //进客流 outnum: 100, //出客流 outside_innum: 100, //外部进客流 outside_outnum: 100 //外部出客流 }, { plaza_unid: "83c2266f-a29b-478a-8a59-2ed54e144641", plaza_externalid:"1001001001", countdate: "2018-01-02", counttime: "2018-01-01 11:00:00", counttimez: "2018-01-01T11:00:00+08:00", innum: 100, outnum: 100, outside_innum: 100, outside_outnum: 100 }, { plaza_unid: "83c2266f-a29b-478a-8a59-2ed54e144641", plaza_externalid:"1001001001", countdate: "2018-01-03", counttime: "2018-01-01 12:00:00", counttimez: "2018-01-01T12:00:00+08:00", innum: 100, outnum: 100, outside_innum: 100, outside_outnum: 100 } ... ... ] } 增量小时级客流 =================== 根据门店unid以及modifytime,获取modifytime之后更新过的、按小时统计的客流数据。 | ``Verb``: GET | ``Path``: api/v1/passenger/increment/plazaHour | ``Header``: (authorization, {$atoken}) | Request Params: - plaza_unid:广场(门店)唯一编码。示例:8734758a-e0b0-11e8-b6e8-7cd30ac4c9a6 - modify_time:数据最后更新时间,示例:"2019-01-01 12:00:00" | Response Body: .. code-block:: javascript { msg_code: 200, msg_info: "成功", totalNum: 100, data: [ { plaza_unid: "83c2266f-a29b-478a-8a59-2ed54e144641", //(广场)门店唯一编码 plaza_externalid:"1001001001", //(广场)门店的外部编码 countdate: "2018-01-01", //日期 counttime: "2018-01-01 10:00:00", //日期时间 counttimez: "2018-01-01T10:00:00+08:00", //带有时区信息的日期时间 innum: 100, //进客流 outnum: 100, //出客流 outside_innum: 100, //外部进客流 outside_outnum: 100, //外部出客流 modify_time:"2019-01-01 13:25:14" //更新时间 }, { plaza_unid: "83c2266f-a29b-478a-8a59-2ed54e144641", plaza_externalid:"1001001001", countdate: "2018-01-02", counttime: "2018-01-01 11:00:00", counttimez: "2018-01-01T11:00:00+08:00", innum: 100, outnum: 100, outside_innum: 100, outside_outnum: 100, modify_time:"2019-01-01 13:25:14" }, { plaza_unid: "83c2266f-a29b-478a-8a59-2ed54e144641", plaza_externalid:"1001001001", countdate: "2018-01-03", counttime: "2018-01-01 12:00:00", counttimez: "2018-01-01T12:00:00+08:00", innum: 100, outnum: 100, outside_innum: 100, outside_outnum: 100, modify_time:"2019-01-01 13:25:14" } ... ... ] } 小时级客流(分组) ======================= 根据分组id获取门店的小时数据 | ``Verb``: GET | ``Path``: api/v1/passenger/plazaHourByGroupId | ``Header``: (authorization, {$atoken}) | Request Params: - group_id:分组编号。示例:"101", - startTime:数据开始时间。示例:"2019-01-01 10:00:00" - endTime: 数据结束时间。示例:"2019-01-01 22:00:00" | Response Body: .. code-block:: javascript { msg_code: 200, msg_info: "成功", totalNum: 100, data: [ { plaza_unid: "83c2266f-a29b-478a-8a59-2ed54e144641", //(广场)门店唯一编码 plaza_externalid:"1001001001", //(广场)门店的外部编码 group_id:"100110001", //分组id countdate: "2018-01-01", //日期 counttime: "2018-01-01 10:00:00", //日期时间 counttimez: "2018-01-01T10:00:00+08:00", //带有时区信息的日期时间 innum: 100, //进客流 outnum: 100, //出客流 outside_innum: 100, //外部进客流 outside_outnum: 100 //外部出客流 }, { plaza_unid: "83c2266f-a29b-478a-8a59-2ed54e144641", plaza_externalid:"1001001001", group_id:"100110001", countdate: "2018-01-02", counttime: "2018-01-01 11:00:00", counttimez: "2018-01-01T11:00:00+08:00", innum: 100, outnum: 100, outside_innum: 100, outside_outnum: 100 }, { plaza_unid: "83c2266f-a29b-478a-8a59-2ed54e144641", plaza_externalid:"1001001001", group_id:"100110001", countdate: "2018-01-03", counttime: "2018-01-01 12:00:00", counttimez: "2018-01-01T12:00:00+08:00", innum: 100, outnum: 100, outside_innum: 100, outside_outnum: 100 } ... ... ] } 增量级小时客流(分组) ============================ 根据分组id和modifytime获取该分组所有门店在modifytime之后更新过的的小时数据 | ``Verb``: GET | ``Path``: api/v1/passenger/increment/plazaHourByGroupId | ``Header``: (authorization, {$atoken}) | Request Params: - group_id:分组编号。示例:"101", - modify_time:数据最后更新时间,示例:"2019-01-01 12:00:00" | Response Body: .. code-block:: javascript { msg_code: 200, msg_info: "成功", totalNum: 100, data: [ { plaza_unid: "83c2266f-a29b-478a-8a59-2ed54e144641", //(广场)门店唯一编码 plaza_externalid:"1001001001", //(广场)门店的外部编码 group_id:"100110001", //分组id countdate: "2018-01-01", //日期 counttime: "2018-01-01 10:00:00", //日期时间 counttimez: "2018-01-01T10:00:00+08:00", //带有时区信息的日期时间 innum: 100, //进客流 outnum: 100, //出客流 outside_innum: 100, //外部进客流 outside_outnum: 100, //外部出客流 modify_time:"2019-01-01 13:25:14" //更新时间 }, { plaza_unid: "83c2266f-a29b-478a-8a59-2ed54e144641", plaza_externalid:"1001001001", group_id:"100110001", countdate: "2018-01-02", counttime: "2018-01-01 11:00:00", counttimez: "2018-01-01T11:00:00+08:00", innum: 100, outnum: 100, outside_innum: 100, outside_outnum: 100, modify_time:"2019-01-01 13:25:14" }, { plaza_unid: "83c2266f-a29b-478a-8a59-2ed54e144641", plaza_externalid:"1001001001", group_id:"100110001", countdate: "2018-01-03", counttime: "2018-01-01 12:00:00", counttimez: "2018-01-01T12:00:00+08:00", innum: 100, outnum: 100, outside_innum: 100, outside_outnum: 100, modify_time:"2019-01-01 13:25:14" } ... ... ] } 小时级客流(全部) ======================= 获取全部门店的小时客流数据。 | ``Verb``: GET | ``Path``: api/v1/passenger/plazaHourByAccount | ``Header``: (authorization, {$atoken}) | Request Params: - startTime:数据开始时间。示例:"2019-01-01 10:00:00" - endTime:数据结束时间。示例:"2019-01-01 22:00:00" | Response Body: .. code-block:: javascript { msg_code: 200, msg_info: "成功", totalNum: 100, data: [ { plaza_unid: "83c2266f-a29b-478a-8a59-2ed54e144641", //(广场)门店唯一编码 plaza_externalid:"1001001001", //(广场)门店的外部编码 group_id:"100110001", //分组id countdate: "2018-01-01", //日期 counttime: "2018-01-01 10:00:00", //日期时间 counttimez: "2018-01-01T10:00:00+08:00", //带有时区信息的日期时间 innum: 100, //进客流 outnum: 100, //出客流 outside_innum: 100, //外部进客流 outside_outnum: 100 //外部出客流 }, { plaza_unid: "83c2266f-a29b-478a-8a59-2ed54e144641", plaza_externalid:"1001001001", group_id:"100110001", countdate: "2018-01-02", counttime: "2018-01-01 11:00:00", counttimez: "2018-01-01T11:00:00+08:00", innum: 100, outnum: 100, outside_innum: 100, outside_outnum: 100 }, { plaza_unid: "83c2266f-a29b-478a-8a59-2ed54e144641", plaza_externalid:"1001001001", group_id:"100110001", countdate: "2018-01-03", counttime: "2018-01-01 12:00:00", counttimez: "2018-01-01T12:00:00+08:00", innum: 100, outnum: 100, outside_innum: 100, outside_outnum: 100 } ... ... ] } 增量小时级客流(全部) ========================= 获取全部门店在modifytime之后更新过的小时客流数据。 | ``Verb``: GET | ``Path``: api/v1/passenger/increment/plazaHourByAccount | ``Header``: (authorization, {$atoken}) | Request Params: - modify_time:数据最后更新时间,示例:"2019-01-01 12:00:00" | Response Body: .. code-block:: javascript { msg_code: 200, msg_info: "成功", totalNum: 100, data: [ { plaza_unid: "83c2266f-a29b-478a-8a59-2ed54e144641", //(广场)门店唯一编码 plaza_externalid:"1001001001", //(广场)门店的外部编码 group_id:"100110001", //分组id countdate: "2018-01-01", //日期 counttime: "2018-01-01 10:00:00", //日期时间 counttimez: "2018-01-01T10:00:00+08:00", //带有时区信息的日期时间 innum: 100, //进客流 outnum: 100, //出客流 outside_innum: 100, //外部进客流 outside_outnum: 100, //外部出客流 modify_time:"2019-01-01 13:25:14" //更新时间 }, { plaza_unid: "83c2266f-a29b-478a-8a59-2ed54e144641", plaza_externalid:"1001001001", group_id:"100110001", countdate: "2018-01-02", counttime: "2018-01-01 11:00:00", counttimez: "2018-01-01T11:00:00+08:00", innum: 100, outnum: 100, outside_innum: 100, outside_outnum: 100, modify_time:"2019-01-01 13:25:14" }, { plaza_unid: "83c2266f-a29b-478a-8a59-2ed54e144641", plaza_externalid:"1001001001", group_id:"100110001", countdate: "2018-01-03", counttime: "2018-01-01 12:00:00", counttimez: "2018-01-01T12:00:00+08:00", innum: 100, outnum: 100, outside_innum: 100, outside_outnum: 100, modify_time:"2019-01-01 13:25:14" } ... ... ] } 十分钟级客流 =================== 根据门店unid和日期获取按十分钟为最小粒度统计的客流数据。 | ``Verb``: GET | ``Path``: api/v1/passenger/plazaTenMins | ``Header``: (authorization, {$atoken}) | Request Params: - plaza_unid:广场(门店)唯一编码。示例:8734758a-e0b0-11e8-b6e8-7cd30ac4c9a6 - startTime:数据开始时间。示例:"2019-01-01 10:00:00", - endTime: 数据结束时间。示例:"2019-01-01 22:00:00" | Response Body: .. code-block:: javascript { msg_code: 200, msg_info: "成功", totalNum: 100, data: [ { plaza_unid: "83c2266f-a29b-478a-8a59-2ed54e144641", //(广场)门店唯一编码 plaza_externalid:"1001001001", //(广场)门店的外部编码 countdate: "2018-01-01", //日期 counttime: "2018-01-01 10:00:00", //日期时间 counttimez: "2018-01-01T10:00:00+08:00", //带有时区信息的日期时间 innum: 100, //进客流 outnum: 100, //出客流 outside_innum: 100, //外部进客流 outside_outnum: 100 //外部出客流 }, { plaza_unid: "83c2266f-a29b-478a-8a59-2ed54e144641", plaza_externalid:"1001001001", countdate: "2018-01-02", counttime: "2018-01-01 10:10:00", counttimez: "2018-01-01T10:10:00+08:00", innum: 100, outnum: 100, outside_innum: 100, outside_outnum: 100 }, { plaza_unid: "83c2266f-a29b-478a-8a59-2ed54e144641", plaza_externalid:"1001001001", countdate: "2018-01-03", counttime: "2018-01-01 10:20:00", counttimez: "2018-01-01T10:20:00+08:00", innum: 100, outnum: 100, outside_innum: 100, outside_outnum: 100 } ... ... ] } 增量十分钟级客流 =================== 根据门店unid和modifytime获取modifytime之后更新过的十分钟为最小粒度统计的客流数据。 | ``Verb``: GET | ``Path``: api/v1/passenger/increment/plazaTenMins | ``Header``: (authorization, {$atoken}) | Request Params: - plaza_unid:广场(门店)唯一编码。示例:8734758a-e0b0-11e8-b6e8-7cd30ac4c9a6 - modify_time:数据最后更新时间,示例:"2019-01-01 12:00:00" | Response Body: .. code-block:: javascript { msg_code: 200, msg_info: "成功", totalNum: 100, data: [ { plaza_unid: "83c2266f-a29b-478a-8a59-2ed54e144641", //(广场)门店唯一编码 plaza_externalid:"1001001001", //(广场)门店的外部编码 countdate: "2018-01-01", //日期 counttime: "2018-01-01 10:00:00", //日期时间 counttimez: "2018-01-01T10:00:00+08:00", //带有时区信息的日期时间 innum: 100, //进客流 outnum: 100, //出客流 outside_innum: 100, //外部进客流 outside_outnum: 100, //外部出客流 modify_time:"2019-01-01 13:25:14" //更新时间 }, { plaza_unid: "83c2266f-a29b-478a-8a59-2ed54e144641", plaza_externalid:"1001001001", countdate: "2018-01-02", counttime: "2018-01-01 10:10:00", counttimez: "2018-01-01T10:10:00+08:00", innum: 100, outnum: 100, outside_innum: 100, outside_outnum: 100, modify_time:"2019-01-01 13:25:14" }, { plaza_unid: "83c2266f-a29b-478a-8a59-2ed54e144641", plaza_externalid:"1001001001", countdate: "2018-01-03", counttime: "2018-01-01 10:20:00", counttimez: "2018-01-01T10:20:00+08:00", innum: 100, outnum: 100, outside_innum: 100, outside_outnum: 100, modify_time:"2019-01-01 13:25:14" } ... ... ] } 十分钟级客流(分组) ======================= 根据分组id获取门店的小时数据 | ``Verb``: GET | ``Path``: api/v1/passenger/plazaTenMinsByGroupId | ``Header``: (authorization, {$atoken}) | Request Params: - group_id:分组编号。示例:"101", - startTime:数据开始时间。示例:"2019-01-01 10:00:00", - endTime: 数据结束时间。示例:"2019-01-01 22:00:00" | Response Body: .. code-block:: javascript { msg_code: 200, msg_info: "成功", totalNum: 100, data: [ { plaza_unid: "83c2266f-a29b-478a-8a59-2ed54e144641", //(广场)门店唯一编码 plaza_externalid:"1001001001", //(广场)门店的外部编码 group_id:"100110001", //分组id countdate: "2018-01-01", //日期 counttime: "2018-01-01 10:00:00", //日期时间 counttimez: "2018-01-01T10:00:00+08:00", //带有时区信息的日期时间 innum: 100, //进客流 outnum: 100, //出客流 outside_innum: 100, //外部进客流 outside_outnum: 100 //外部出客流 }, { plaza_unid: "83c2266f-a29b-478a-8a59-2ed54e144641", plaza_externalid:"1001001001", group_id:"100110001", countdate: "2018-01-02", counttime: "2018-01-01 10:10:00", counttimez: "2018-01-01T10:10:00+08:00", innum: 100, outnum: 100, outside_innum: 100, outside_outnum: 100 }, { plaza_unid: "83c2266f-a29b-478a-8a59-2ed54e144641", plaza_externalid:"1001001001", group_id:"100110001", countdate: "2018-01-03", counttime: "2018-01-01 10:20:00", counttimez: "2018-01-01T10:20:00+08:00", innum: 100, outnum: 100, outside_innum: 100, outside_outnum: 100 } ... ... ] } 增量十分钟客流(分组) =========================== 根据分组id获取分组下所有门店modifytime之后变更过的小时数据 | ``Verb``: GET | ``Path``: api/v1/passenger/plazaTenMinsByGroupId | ``Header``: (authorization, {$atoken}) | Request Params: - group_id:分组编号。示例:"101", - modify_time:数据最后更新时间,示例:"2019-01-01 12:00:00" | Response Body: .. code-block:: javascript { msg_code: 200, msg_info: "成功", totalNum: 100, data: [ { plaza_unid: "83c2266f-a29b-478a-8a59-2ed54e144641", //(广场)门店唯一编码 plaza_externalid:"1001001001", //(广场)门店的外部编码 group_id:"100110001", //分组id countdate: "2018-01-01", //日期 counttime: "2018-01-01 10:00:00", //日期时间 counttimez: "2018-01-01T10:00:00+08:00", //带有时区信息的日期时间 innum: 100, //进客流 outnum: 100, //出客流 outside_innum: 100, //外部进客流 outside_outnum: 100, //外部出客流 modity_time:"2019-01-01 13:00:12" //更新时间 }, { plaza_unid: "83c2266f-a29b-478a-8a59-2ed54e144641", plaza_externalid:"1001001001", group_id:"100110001", countdate: "2018-01-02", counttime: "2018-01-01 10:10:00", counttimez: "2018-01-01T10:10:00+08:00", innum: 100, outnum: 100, outside_innum: 100, outside_outnum: 100, modity_time:"2019-01-01 13:00:12" }, { plaza_unid: "83c2266f-a29b-478a-8a59-2ed54e144641", plaza_externalid:"1001001001", group_id:"100110001", countdate: "2018-01-03", counttime: "2018-01-01 10:20:00", counttimez: "2018-01-01T10:20:00+08:00", innum: 100, outnum: 100, outside_innum: 100, outside_outnum: 100, modity_time:"2019-01-01 13:00:12" } ... ... ] } 十分钟级客流(全部) ======================== 获取全部门店的小时客流数据。 | ``Verb``: GET | ``Path``: api/v1/passenger/plazaTenMinsByAccount | ``Header``: (authorization, {$atoken}) | Request Params: - startTime:数据开始时间。示例:"2019-01-01 10:00:00", - endTime: 数据结束时间。示例:"2019-01-01 22:00:00" | Response Body: .. code-block:: javascript { msg_code: 200, msg_info: "成功", totalNum: 100, data: [ { plaza_unid: "83c2266f-a29b-478a-8a59-2ed54e144641", //(广场)门店唯一编码 plaza_externalid:"1001001001", //(广场)门店的外部编码 group_id:"100110001", //分组id countdate: "2018-01-01", //日期 counttime: "2018-01-01 10:00:00", //日期时间 counttimez: "2018-01-01T10:00:00+08:00", //带有时区信息的日期时间 innum: 100, //进客流 outnum: 100, //出客流 outside_innum: 100, //外部进客流 outside_outnum: 100 //外部出客流 }, { plaza_unid: "83c2266f-a29b-478a-8a59-2ed54e144641", plaza_externalid:"1001001001", group_id:"100110001", countdate: "2018-01-02", counttime: "2018-01-01 10:10:00", counttimez: "2018-01-01T10:10:00+08:00", innum: 100, outnum: 100, outside_innum: 100, outside_outnum: 100 }, { plaza_unid: "83c2266f-a29b-478a-8a59-2ed54e144641", plaza_externalid:"1001001001", group_id:"100110001", countdate: "2018-01-03", counttime: "2018-01-01 10:20:00", counttimez: "2018-01-01T10:20:00+08:00", innum: 100, outnum: 100, outside_innum: 100, outside_outnum: 100 } ... ... ] } 增量十分钟客流(全部) ============================ 获取全部门店在modifytime之后变更过的小时客流数据。 | ``Verb``: GET | ``Path``: api/v1/passenger/increment/plazaTenMinsByAccount | ``Header``: (authorization, {$atoken}) | Request Params: - modify_time:数据最后更新时间,示例:"2019-01-01 12:00:00" | Response Body: .. code-block:: javascript { msg_code: 200, msg_info: "成功", totalNum: 100, data: [ { plaza_unid: "83c2266f-a29b-478a-8a59-2ed54e144641", //(广场)门店唯一编码 plaza_externalid:"1001001001", //(广场)门店的外部编码 group_id:"100110001", //分组id countdate: "2018-01-01", //日期 counttime: "2018-01-01 10:00:00", //日期时间 counttimez: "2018-01-01T10:00:00+08:00", //带有时区信息的日期时间 innum: 100, //进客流 outnum: 100, //出客流 outside_innum: 100, //外部进客流 outside_outnum: 100, //外部出客流 modity_time:"2019-01-01 13:12:10" //更新时间 }, { plaza_unid: "83c2266f-a29b-478a-8a59-2ed54e144641", plaza_externalid:"1001001001", group_id:"100110001", countdate: "2018-01-02", counttime: "2018-01-01 10:10:00", counttimez: "2018-01-01T10:10:00+08:00", innum: 100, outnum: 100, outside_innum: 100, outside_outnum: 100, modity_time:"2019-01-01 13:12:10" }, { plaza_unid: "83c2266f-a29b-478a-8a59-2ed54e144641", plaza_externalid:"1001001001", group_id:"100110001", countdate: "2018-01-03", counttime: "2018-01-01 10:20:00", counttimez: "2018-01-01T10:20:00+08:00", innum: 100, outnum: 100, outside_innum: 100, outside_outnum: 100, modity_time:"2019-01-01 13:12:10" } ... ... ] } 分组数据 ******************** 分组天客流数据 ================ 获取分组的客流汇总数据。 仅支持最小级别的分组数据。 譬如:A分组下有a1,a2,a3分组。其中a1分组下有m1和m2两个店。 那么通过此接口可以获取a1的数据为m1+m2的和。而不能获取A分组的数据。 | ``Verb``: GET | ``Path``: api/v1/passenger/groupDay | ``Header``: (authorization, {$atoken}) | Request Params: - group_id:分组编号。示例:"101", - startDate:数据开始日期。示例:"2019-01-01", - endDate: 数据结束日期。示例:"2019-01-20" | Response Body: .. code-block:: javascript { msg_code: 200, msg_info: "成功", totalNum: 20, data: [ { group_id:"100110001", //分组id countdate: "2018-01-01", //日期 innum: 100, //进客流 outnum: 100, //出客流 outside_innum: 100, //外部进客流 outside_outnum: 100 //外部出客流 }, { group_id:"100110001", countdate: "2018-01-02", innum: 100, outnum: 100, outside_innum: 100, outside_outnum: 100 }, { group_id:"100110001", countdate: "2018-01-03", innum: 100, outnum: 100, outside_innum: 100, outside_outnum: 100 } ... ... ] } 分组增量天客流数据 ======================= 获取modifytime之后更新过的、分组的客流汇总数据。 仅支持最小级别的分组数据。 譬如:A分组下有a1,a2,a3分组。其中a1分组下有m1和m2两个店。 那么通过此接口可以获取a1的数据为m1+m2的和。而不能获取A分组的数据。 | ``Verb``: GET | ``Path``: api/v1/passenger/groupDay | ``Header``: (authorization, {$atoken}) | Request Params: - group_id:分组编号。示例:"101", - modify_time:数据最后更新时间,示例:"2019-01-01 12:00:00" | Response Body: .. code-block:: javascript { msg_code: 200, msg_info: "成功", totalNum: 20, data: [ { group_id:"100110001", //分组id countdate: "2018-01-01", //日期 innum: 100, //进客流 outnum: 100, //出客流 modity_time:"2019-01-01 13:12:10" //更新时间 }, { group_id:"100110001", countdate: "2018-01-02", innum: 100, outnum: 100, modity_time:"2019-01-01 13:12:10" }, { group_id:"100110001", countdate: "2018-01-03", innum: 100, outnum: 100, modity_time:"2019-01-01 13:12:10" } ... ... ] } 楼层数据 ******************** 天级客流 ============== 根据门店的unid获取门店下各个楼层的天客流数据。 | ``Verb``: GET | ``Path``: api/v1/passenger/floorDay | ``Header``: (authorization, {$atoken}) | Request Params: - plaza_unid:广场(门店)唯一编码。示例:8734758a-e0b0-11e8-b6e8-7cd30ac4c9a6 - startDate:数据开始日期。示例:"2019-01-01", - endDate: 数据结束日期。示例:"2019-01-20" | Response Body: .. code-block:: javascript { msg_code: 200, msg_info: "成功", data: [ { plaza_unid: "83c2266f-a29b-478a-8a59-2ed54e144641", //(广场)门店唯一编码 floor_unid: "12c2266f-a29b-478a-8a59-2ed54e176533", //楼层唯一编码 floor_externalid:"1001001001", //楼层外部编码 countdate: "2018-01-01", //日期 innum: 100, //进客流 outnum: 100 //出客流 }, { plaza_unid: "83c2266f-a29b-478a-8a59-2ed54e144641", floor_unid: "12c2266f-a29b-478a-8a59-2ed54e176533", floor_externalid:"1001001001", countdate: "2018-01-02", innum: 100, outnum: 100 }, { plaza_unid: "83c2266f-a29b-478a-8a59-2ed54e144641", floor_unid: "12c2266f-a29b-478a-8a59-2ed54e176533", floor_externalid:"1001001001", countdate: "2018-01-03", innum: 100, outnum: 100 } ... ... ] } 增量天级客流 ============== 根据门店的unid和modifytime获取门店下各个楼层在modifytime之后更新过的天客流数据。 | ``Verb``: GET | ``Path``: api/v1/passenger/increment/floorDay | ``Header``: (authorization, {$atoken}) | Request Params: - plaza_unid:广场(门店)唯一编码。示例:8734758a-e0b0-11e8-b6e8-7cd30ac4c9a6 - modify_time:数据最后更新时间,示例:"2019-01-01 12:00:00" | Response Body: .. code-block:: javascript { msg_code: 200, msg_info: "成功", data: [ { plaza_unid: "83c2266f-a29b-478a-8a59-2ed54e144641", //(广场)门店唯一编码 floor_unid: "12c2266f-a29b-478a-8a59-2ed54e176533", //楼层唯一编码 floor_externalid:"1001001001", //楼层外部编码 countdate: "2018-01-01", //日期 innum: 100, //进客流 outnum: 100, //出客流 modity_time:"2019-01-01 13:12:10" //更新时间 }, { plaza_unid: "83c2266f-a29b-478a-8a59-2ed54e144641", floor_unid: "12c2266f-a29b-478a-8a59-2ed54e176533", floor_externalid:"1001001001", countdate: "2018-01-02", innum: 100, outnum: 100, modity_time:"2019-01-01 13:12:10" }, { plaza_unid: "83c2266f-a29b-478a-8a59-2ed54e144641", floor_unid: "12c2266f-a29b-478a-8a59-2ed54e176533", floor_externalid:"1001001001", countdate: "2018-01-03", innum: 100, outnum: 100, modity_time:"2019-01-01 13:12:10" } ... ... ] } 楼层小时客流 ============== 根据门店的unid获取门店下各个楼层的天客流数据。 | ``Verb``: GET | ``Path``: api/v1/passenger/floorHour | ``Header``: (authorization, {$atoken}) | Request Params: - plaza_unid:广场(门店)唯一编码。示例:8734758a-e0b0-11e8-b6e8-7cd30ac4c9a6 - startTime:数据开始时间。示例:"2019-01-01 10:00:00", - endTime: 数据结束时间。示例:"2019-01-01 22:00:00" | Response Body: .. code-block:: javascript { msg_code: 200, msg_info: "成功", totalNum: 20, data: [ { plaza_unid: "83c2266f-a29b-478a-8a59-2ed54e144641", //(广场)门店唯一编码 floor_unid: "12c2266f-a29b-478a-8a59-2ed54e176533", //楼层唯一编码 floor_externalid:"1001001001", //楼层外部编码 countdate: "2018-01-01", //日期 counttime: "2018-01-01 10:00:00", //日期时间 counttimez: "2018-01-01T10:00:00+08:00", //带有时区信息的日期时间 innum: 100, //进客流 outnum: 100 //出客流 }, { plaza_unid: "83c2266f-a29b-478a-8a59-2ed54e144641", floor_unid: "12c2266f-a29b-478a-8a59-2ed54e176533", floor_externalid:"1001001001", countdate: "2018-01-02", counttime: "2018-01-01 11:00:00", counttimez: "2018-01-01T11:00:00+08:00", innum: 100, outnum: 100 }, { plaza_unid: "83c2266f-a29b-478a-8a59-2ed54e144641", floor_unid: "12c2266f-a29b-478a-8a59-2ed54e176533", floor_externalid:"1001001001", countdate: "2018-01-03", counttime: "2018-01-01 12:00:00", counttimez: "2018-01-01T12:00:00+08:00", innum: 100, outnum: 100 } ... ... ] } 增量小时级客流 ================= 根据门店的unid以及modifytime获取门店下各个楼层在modifytime之后更新过的天客流数据。 | ``Verb``: GET | ``Path``: api/v1/passenger/increment/floorHour | ``Header``: (authorization, {$atoken}) | Request Params: - plaza_unid:广场(门店)唯一编码。示例:8734758a-e0b0-11e8-b6e8-7cd30ac4c9a6 - modify_time:数据最后更新时间,示例:"2019-01-01 12:00:00" | Response Body: .. code-block:: javascript { msg_code: 200, msg_info: "成功", totalNum: 20, data: [ { plaza_unid: "83c2266f-a29b-478a-8a59-2ed54e144641", //(广场)门店唯一编码 floor_unid: "12c2266f-a29b-478a-8a59-2ed54e176533", //楼层唯一编码 floor_externalid:"1001001001", //楼层外部编码 countdate: "2018-01-01", //日期 counttime: "2018-01-01 10:00:00", //日期时间 counttimez: "2018-01-01T10:00:00+08:00", //带有时区信息的日期时间 innum: 100, //进客流 outnum: 100, //出客流 modity_time:"2019-01-01 13:12:10" //更新时间 }, { plaza_unid: "83c2266f-a29b-478a-8a59-2ed54e144641", floor_unid: "12c2266f-a29b-478a-8a59-2ed54e176533", floor_externalid:"1001001001", countdate: "2018-01-02", counttime: "2018-01-01 11:00:00", counttimez: "2018-01-01T11:00:00+08:00", innum: 100, outnum: 100, modity_time:"2019-01-01 13:12:10" }, { plaza_unid: "83c2266f-a29b-478a-8a59-2ed54e144641", floor_unid: "12c2266f-a29b-478a-8a59-2ed54e176533", floor_externalid:"1001001001", countdate: "2018-01-03", counttime: "2018-01-01 12:00:00", counttimez: "2018-01-01T12:00:00+08:00", innum: 100, outnum: 100, modity_time:"2019-01-01 13:12:10" } ... ... ] } 楼层十分钟客流 =================== 根据门店unid和日期获取按十分钟为最小粒度统计的楼层客流数据。 | ``Verb``: GET | ``Path``: api/v1/passenger/floorTenMins | ``Header``: (authorization, {$atoken}) | Request Params: - plaza_unid:广场(门店)唯一编码。示例:8734758a-e0b0-11e8-b6e8-7cd30ac4c9a6 - startTime:数据开始时间。示例:"2019-01-01 10:00:00", - endTime: 数据结束时间。示例:"2019-01-01 22:00:00" | Response Body: .. code-block:: javascript { msg_code: 200, msg_info: "成功", totalNum: 100, data: [ { plaza_unid: "83c2266f-a29b-478a-8a59-2ed54e144641", //(广场)门店唯一编码 floor_unid: "12c2266f-a29b-478a-8a59-2ed54e176533", //楼层唯一编码 floor_externalid:"1001001001", //楼层外部编码 countdate: "2018-01-01", //日期 counttime: "2018-01-01 10:00:00", //日期时间 counttimez: "2018-01-01T10:00:00+08:00", //带有时区信息的日期时间 innum: 100, //进客流 outnum: 100 //出客流 }, { plaza_unid: "83c2266f-a29b-478a-8a59-2ed54e144641", floor_unid: "12c2266f-a29b-478a-8a59-2ed54e176533", floor_externalid:"1001001001", countdate: "2018-01-02", counttime: "2018-01-01 10:10:00", counttimez: "2018-01-01T10:10:00+08:00", innum: 100, outnum: 100 }, { plaza_unid: "83c2266f-a29b-478a-8a59-2ed54e144641", floor_unid: "12c2266f-a29b-478a-8a59-2ed54e176533", floor_externalid:"1001001001", countdate: "2018-01-03", counttime: "2018-01-01 10:20:00", counttimez: "2018-01-01T10:20:00+08:00", innum: 100, outnum: 100 } ... ... ] } 增量十分钟客流 =================== 根据门店unid以及modifytime获取所有楼层在modifytime之后更新过的十分钟为最小粒度统计的楼层客流数据。 | ``Verb``: GET | ``Path``: api/v1/passenger/increment/floorTenMins | ``Header``: (authorization, {$atoken}) | Request Params: - plaza_unid:广场(门店)唯一编码。示例:8734758a-e0b0-11e8-b6e8-7cd30ac4c9a6 - modify_time:数据最后更新时间,示例:"2019-01-01 12:00:00" | Response Body: .. code-block:: javascript { msg_code: 200, msg_info: "成功", totalNum: 100, data: [ { plaza_unid: "83c2266f-a29b-478a-8a59-2ed54e144641", //(广场)门店唯一编码 floor_unid: "12c2266f-a29b-478a-8a59-2ed54e176533", //楼层唯一编码 floor_externalid:"1001001001", //楼层外部编码 countdate: "2018-01-01", //日期 counttime: "2018-01-01 10:00:00", //日期时间 counttimez: "2018-01-01T10:00:00+08:00", //带有时区信息的日期时间 innum: 100, //进客流 outnum: 100, //出客流 modity_time:"2019-01-01 13:12:10" //更新时间 }, { plaza_unid: "83c2266f-a29b-478a-8a59-2ed54e144641", floor_unid: "12c2266f-a29b-478a-8a59-2ed54e176533", floor_externalid:"1001001001", countdate: "2018-01-02", counttime: "2018-01-01 10:10:00", counttimez: "2018-01-01T10:10:00+08:00", innum: 100, outnum: 100, modity_time:"2019-01-01 13:12:10" }, { plaza_unid: "83c2266f-a29b-478a-8a59-2ed54e144641", floor_unid: "12c2266f-a29b-478a-8a59-2ed54e176533", floor_externalid:"1001001001", countdate: "2018-01-03", counttime: "2018-01-01 10:20:00", counttimez: "2018-01-01T10:20:00+08:00", innum: 100, outnum: 100, modity_time:"2019-01-01 13:12:10" } ... ... ] } 店铺(分区)数据 ******************** 天级客流 ======================= 根据门店的unid获取门店下各个店内分区(商场内店铺)的天客流数据。 | ``Verb``: GET | ``Path``: api/v1/passenger/zoneDay | ``Header``: (authorization, {$atoken}) | Request Params: - plaza_unid:广场(门店)唯一编码。示例:8734758a-e0b0-11e8-b6e8-7cd30ac4c9a6 - startDate:数据开始日期。示例:"2019-01-01", - endDate: 数据结束日期。示例:"2019-01-20" | Response Body: .. code-block:: javascript { msg_code: 200, msg_info: "成功", data: [ { plaza_unid: "83c2266f-a29b-478a-8a59-2ed54e144641", //(广场)门店唯一编码 zone_unid: "12c2266f-a29b-478a-8a59-2ed54e176533", //区域唯一编码 zone_externalid:"1001001001", //区域外部编号 countdate: "2018-01-01", //日期 innum: 100, //进客流 outnum: 100 //出客流 }, { plaza_unid: "83c2266f-a29b-478a-8a59-2ed54e144641", zone_unid: "12c2266f-a29b-478a-8a59-2ed54e176533", zone_externalid:"1001001001", countdate: "2018-01-02", innum: 100, outnum: 100 }, { plaza_unid: "83c2266f-a29b-478a-8a59-2ed54e144641", zone_unid: "12c2266f-a29b-478a-8a59-2ed54e176533", zone_externalid:"1001001001", countdate: "2018-01-03", innum: 100, outnum: 100 } ... ... ] } 增量天级客流 ======================= 根据门店的unid以及modifytime获取门店下各个店内分区(商场内店铺)在modifytime之后更新过的天客流数据。 | ``Verb``: GET | ``Path``: api/v1/passenger/increment/zoneDay | ``Header``: (authorization, {$atoken}) | Request Params: - plaza_unid:广场(门店)唯一编码。示例:8734758a-e0b0-11e8-b6e8-7cd30ac4c9a6 - modify_time:数据最后更新时间,示例:"2019-01-01 12:00:00" | Response Body: .. code-block:: javascript { msg_code: 200, msg_info: "成功", data: [ { plaza_unid: "83c2266f-a29b-478a-8a59-2ed54e144641", //(广场)门店唯一编码 zone_unid: "12c2266f-a29b-478a-8a59-2ed54e176533", //区域唯一编码 zone_externalid:"1001001001", //区域外部编号 countdate: "2018-01-01", //日期 innum: 100, //进客流 outnum: 100, //出客流 modity_time:"2019-01-01 13:12:10" //更新时间 }, { plaza_unid: "83c2266f-a29b-478a-8a59-2ed54e144641", zone_unid: "12c2266f-a29b-478a-8a59-2ed54e176533", zone_externalid:"1001001001", countdate: "2018-01-02", innum: 100, outnum: 100, modity_time:"2019-01-01 13:12:10" }, { plaza_unid: "83c2266f-a29b-478a-8a59-2ed54e144641", zone_unid: "12c2266f-a29b-478a-8a59-2ed54e176533", zone_externalid:"1001001001", countdate: "2018-01-03", innum: 100, outnum: 100, modity_time:"2019-01-01 13:12:10" } ... ... ] } 小时级客流 =========================== 根据门店的unid获取门店下各个店内分区(商场内店铺)的小时级客流数据。 | ``Verb``: GET | ``Path``: api/v1/passenger/zoneHour | ``Header``: (authorization, {$atoken}) | Request Params: - plaza_unid:广场(门店)唯一编码。示例:8734758a-e0b0-11e8-b6e8-7cd30ac4c9a6 - startTime:数据开始时间。示例:"2019-01-01 10:00:00" - endTime: 数据结束时间。示例:"2019-01-01 22:00:00" | Response Body: .. code-block:: javascript { msg_code: 200, msg_info: "成功", totalNum: 20, data: [ { plaza_unid: "83c2266f-a29b-478a-8a59-2ed54e144641", //(广场)门店唯一编码 zone_unid: "12c2266f-a29b-478a-8a59-2ed54e176533", //区域唯一编码 zone_externalid:"1001001001", //区域外部编号 countdate: "2018-01-01", //日期 counttime: "2018-01-01 10:00:00", //日期时间 counttimez: "2018-01-01T10:00:00+08:00", //带有时区信息的日期时间 innum: 100, //进客流 outnum: 100 //出客流 }, { plaza_unid: "83c2266f-a29b-478a-8a59-2ed54e144641", zone_unid: "12c2266f-a29b-478a-8a59-2ed54e176533", zone_externalid:"1001001001", floor_externalid:"1001001001", countdate: "2018-01-02", counttime: "2018-01-01 11:00:00", counttimez: "2018-01-01T11:00:00+08:00", innum: 100, outnum: 100 }, { plaza_unid: "83c2266f-a29b-478a-8a59-2ed54e144641", zone_unid: "12c2266f-a29b-478a-8a59-2ed54e176533", zone_externalid:"1001001001", countdate: "2018-01-03", counttime: "2018-01-01 12:00:00", counttimez: "2018-01-01T12:00:00+08:00", innum: 100, outnum: 100 } ... ... ] } 增量小时级客流 =========================== 根据门店的unid以及modifytime获取门店下各个店内分区(商场内店铺)在modifytime之后更新过的小时级客流数据。 | ``Verb``: GET | ``Path``: api/v1/passenger/increment/zoneHour | ``Header``: (authorization, {$atoken}) | Request Params: - plaza_unid:广场(门店)唯一编码。示例:8734758a-e0b0-11e8-b6e8-7cd30ac4c9a6 - modify_time:数据最后更新时间,示例:"2019-01-01 12:00:00" | Response Body: .. code-block:: javascript { msg_code: 200, msg_info: "成功", totalNum: 20, data: [ { plaza_unid: "83c2266f-a29b-478a-8a59-2ed54e144641", //(广场)门店唯一编码 zone_unid: "12c2266f-a29b-478a-8a59-2ed54e176533", //区域唯一编码 zone_externalid:"1001001001", //区域外部编号 countdate: "2018-01-01", //日期 counttime: "2018-01-01 10:00:00", //日期时间 counttimez: "2018-01-01T10:00:00+08:00", //带有时区信息的日期时间 innum: 100, //进客流 outnum: 100, //出客流 modity_time:"2019-01-01 13:12:10" //更新时间 }, { plaza_unid: "83c2266f-a29b-478a-8a59-2ed54e144641", zone_unid: "12c2266f-a29b-478a-8a59-2ed54e176533", zone_externalid:"1001001001", floor_externalid:"1001001001", countdate: "2018-01-02", counttime: "2018-01-01 11:00:00", counttimez: "2018-01-01T11:00:00+08:00", innum: 100, outnum: 100, modity_time:"2019-01-01 13:12:10" }, { plaza_unid: "83c2266f-a29b-478a-8a59-2ed54e144641", zone_unid: "12c2266f-a29b-478a-8a59-2ed54e176533", zone_externalid:"1001001001", countdate: "2018-01-03", counttime: "2018-01-01 12:00:00", counttimez: "2018-01-01T12:00:00+08:00", innum: 100, outnum: 100, modity_time:"2019-01-01 13:12:10" } ... ... ] } 十分钟级客流 ============================ 根据门店unid和日期获取按十分钟为最小粒度统计的店内分区(商场内店铺)客流数据。 | ``Verb``: GET | ``Path``: api/v1/passenger/zoneTenMins | ``Header``: (authorization, {$atoken}) | Request Params: - plaza_unid:广场(门店)唯一编码。示例:8734758a-e0b0-11e8-b6e8-7cd30ac4c9a6 - startTime:数据开始时间。示例:"2019-01-01 10:00:00", - endTime: 数据结束时间。示例:"2019-01-01 22:00:00" | Response Body: .. code-block:: javascript { msg_code: 200, msg_info: "成功", totalNum: 100, data: [ { plaza_unid: "83c2266f-a29b-478a-8a59-2ed54e144641", //(广场)门店唯一编码 zone_unid: "12c2266f-a29b-478a-8a59-2ed54e176533", //区域唯一编码 zone_externalid:"1001001001", //区域外部编号 countdate: "2018-01-01", //日期 counttime: "2018-01-01 10:00:00", //日期时间 counttimez: "2018-01-01T10:00:00+08:00", //带有时区信息的日期时间 innum: 100, //进客流 outnum: 100 //出客流 }, { plaza_unid: "83c2266f-a29b-478a-8a59-2ed54e144641", zone_unid: "12c2266f-a29b-478a-8a59-2ed54e176533", zone_externalid:"1001001001", countdate: "2018-01-02", counttime: "2018-01-01 10:10:00", counttimez: "2018-01-01T10:10:00+08:00", innum: 100, outnum: 100 }, { plaza_unid: "83c2266f-a29b-478a-8a59-2ed54e144641", zone_unid: "12c2266f-a29b-478a-8a59-2ed54e176533", zone_externalid:"1001001001", countdate: "2018-01-03", counttime: "2018-01-01 10:20:00", counttimez: "2018-01-01T10:20:00+08:00", innum: 100, outnum: 100 } ... ... ] } 增量十分钟级客流 ============================ 根据门店unid以及modifytime获取所有店内分区(商场内店铺)在modifytime之后更新过的十分钟级客流数据。 | ``Verb``: GET | ``Path``: api/v1/passenger/increment/zoneTenMins | ``Header``: (authorization, {$atoken}) | Request Params: - plaza_unid:广场(门店)唯一编码。示例:8734758a-e0b0-11e8-b6e8-7cd30ac4c9a6 - modify_time:数据最后更新时间,示例:"2019-01-01 12:00:00" | Response Body: .. code-block:: javascript { msg_code: 200, msg_info: "成功", totalNum: 100, data: [ { plaza_unid: "83c2266f-a29b-478a-8a59-2ed54e144641", //(广场)门店唯一编码 zone_unid: "12c2266f-a29b-478a-8a59-2ed54e176533", //区域唯一编码 zone_externalid:"1001001001", //区域外部编号 countdate: "2018-01-01", //日期 counttime: "2018-01-01 10:00:00", //日期时间 counttimez: "2018-01-01T10:00:00+08:00", //带有时区信息的日期时间 innum: 100, //进客流 outnum: 100, //出客流 modity_time:"2019-01-01 13:12:10" //更新时间 }, { plaza_unid: "83c2266f-a29b-478a-8a59-2ed54e144641", zone_unid: "12c2266f-a29b-478a-8a59-2ed54e176533", zone_externalid:"1001001001", countdate: "2018-01-02", counttime: "2018-01-01 10:10:00", counttimez: "2018-01-01T10:10:00+08:00", innum: 100, outnum: 100, modity_time:"2019-01-01 13:12:10" }, { plaza_unid: "83c2266f-a29b-478a-8a59-2ed54e144641", zone_unid: "12c2266f-a29b-478a-8a59-2ed54e176533", zone_externalid:"1001001001", countdate: "2018-01-03", counttime: "2018-01-01 10:20:00", counttimez: "2018-01-01T12:00:00+08:00", innum: 100, outnum: 100, modity_time:"2019-01-01 13:12:10" } ... ... ] } 出入口数据 ******************** 天级客流 ============== 根据门店的unid获取门店下各个出入口的天客流数据。 | ``Verb``: GET | ``Path``: api/v1/passenger/gateDay | ``Header``: (authorization, {$atoken}) | Request Params: - plaza_unid:广场(门店)唯一编码。示例:8734758a-e0b0-11e8-b6e8-7cd30ac4c9a6 - startDate:数据开始日期。示例:"2019-01-01", - endDate: 数据结束日期。示例:"2019-01-20" | Response Body: .. code-block:: javascript { msg_code: 200, msg_info: "成功", data: [ { plaza_unid: "83c2266f-a29b-478a-8a59-2ed54e144641", //(广场)门店唯一编码 gate_unid: "12c2266f-a29b-478a-8a59-2ed54e176533", //监控点唯一编码 countdate: "2018-01-01", //日期 innum: 100, //进客流 outnum: 100 //出客流 }, { plaza_unid: "83c2266f-a29b-478a-8a59-2ed54e144641", gate_unid: "12c2266f-a29b-478a-8a59-2ed54e176533", countdate: "2018-01-02", innum: 100, outnum: 100 }, { plaza_unid: "83c2266f-a29b-478a-8a59-2ed54e144641", gate_unid: "12c2266f-a29b-478a-8a59-2ed54e176533", countdate: "2018-01-03", innum: 100, outnum: 100 } ... ... ] } 增量天级客流 ============== 根据门店的unid以及modifytime获取门店下各个出入口子啊modifytime之后更新过的天客流数据。 | ``Verb``: GET | ``Path``: api/v1/passenger/increment/gateDay | ``Header``: (authorization, {$atoken}) | Request Params: - plaza_unid:广场(门店)唯一编码。示例:8734758a-e0b0-11e8-b6e8-7cd30ac4c9a6 - modify_time:数据最后更新时间,示例:"2019-01-01 12:00:00" | Response Body: .. code-block:: javascript { msg_code: 200, msg_info: "成功", data: [ { plaza_unid: "83c2266f-a29b-478a-8a59-2ed54e144641", //(广场)门店唯一编码 gate_unid: "12c2266f-a29b-478a-8a59-2ed54e176533", //监控点唯一编码 countdate: "2018-01-01", //日期 innum: 100, //进客流 outnum: 100, //出客流 modity_time:"2019-01-01 13:12:10" //更新时间 }, { plaza_unid: "83c2266f-a29b-478a-8a59-2ed54e144641", gate_unid: "12c2266f-a29b-478a-8a59-2ed54e176533", countdate: "2018-01-02", innum: 100, outnum: 100, modity_time:"2019-01-01 13:12:10" }, { plaza_unid: "83c2266f-a29b-478a-8a59-2ed54e144641", gate_unid: "12c2266f-a29b-478a-8a59-2ed54e176533", countdate: "2018-01-03", innum: 100, outnum: 100, modity_time:"2019-01-01 13:12:10" } ... ... ] } 小时级客流 ================= 根据门店的unid获取门店下各个出入口的天客流数据。 | ``Verb``: GET | ``Path``: api/v1/passenger/gateHour | ``Header``: (authorization, {$atoken}) | Request Params: - plaza_unid:广场(门店)唯一编码。示例:8734758a-e0b0-11e8-b6e8-7cd30ac4c9a6 - startTime:数据开始时间。示例:"2019-01-01 10:00:00", - endTime: 数据结束时间。示例:"2019-01-01 22:00:00" | Response Body: .. code-block:: javascript { msg_code: 200, msg_info: "成功", totalNum: 20, data: [ { plaza_unid: "83c2266f-a29b-478a-8a59-2ed54e144641", //(广场)门店唯一编码 gate_unid: "12c2266f-a29b-478a-8a59-2ed54e176533", //监控点唯一编码 countdate: "2018-01-01", //日期 counttime: "2018-01-01 10:00:00", //日期时间 counttimez: "2018-01-01T10:00:00+08:00", //带有时区信息的日期时间 innum: 100, //进客流 outnum: 100 //出客流 }, { plaza_unid: "83c2266f-a29b-478a-8a59-2ed54e144641", gate_unid: "12c2266f-a29b-478a-8a59-2ed54e176533", countdate: "2018-01-02", counttime: "2018-01-01 11:00:00", counttimez: "2018-01-01T11:00:00+08:00", innum: 100, outnum: 100 }, { plaza_unid: "83c2266f-a29b-478a-8a59-2ed54e144641", gate_unid: "12c2266f-a29b-478a-8a59-2ed54e176533", countdate: "2018-01-03", counttime: "2018-01-01 12:00:00", counttimez: "2018-01-01T12:00:00+08:00", innum: 100, outnum: 100 } ... ... ] } 增量小时级客流 ============== 根据门店的unid以及modifytime获取门店下各个出入口在modifytime之后更新过的的小时级客流数据。 | ``Verb``: GET | ``Path``: api/v1/passenger/increment/gateHour | ``Header``: (authorization, {$atoken}) | Request Params: - plaza_unid:广场(门店)唯一编码。示例:8734758a-e0b0-11e8-b6e8-7cd30ac4c9a6 - modify_time:数据最后更新时间,示例:"2019-01-01 12:00:00" | Response Body: .. code-block:: javascript { msg_code: 200, msg_info: "成功", totalNum: 20, data: [ { plaza_unid: "83c2266f-a29b-478a-8a59-2ed54e144641", //(广场)门店唯一编码 gate_unid: "12c2266f-a29b-478a-8a59-2ed54e176533", //监控点唯一编码 countdate: "2018-01-01", //日期 counttime: "2018-01-01 10:00:00", //日期时间 counttimez: "2018-01-01T10:00:00+08:00", //带有时区信息的日期时间 innum: 100, //进客流 outnum: 100, //出客流 modity_time:"2019-01-01 13:12:10" //更新时间 }, { plaza_unid: "83c2266f-a29b-478a-8a59-2ed54e144641", gate_unid: "12c2266f-a29b-478a-8a59-2ed54e176533", countdate: "2018-01-02", counttime: "2018-01-01 11:00:00", counttimez: "2018-01-01T11:00:00+08:00", innum: 100, outnum: 100, modity_time:"2019-01-01 13:12:10" }, { plaza_unid: "83c2266f-a29b-478a-8a59-2ed54e144641", gate_unid: "12c2266f-a29b-478a-8a59-2ed54e176533", countdate: "2018-01-03", counttime: "2018-01-01 12:00:00", counttimez: "2018-01-01T12:00:00+08:00", innum: 100, outnum: 100, modity_time:"2019-01-01 13:12:10" } ... ... ] } 十分钟级客流 =================== 根据门店unid和日期获取按十分钟为最小粒度统计的出入口客流数据。 | ``Verb``: GET | ``Path``: api/v1/passenger/gateTenMins | ``Header``: (authorization, {$atoken}) | Request Params: - plaza_unid:广场(门店)唯一编码。示例:8734758a-e0b0-11e8-b6e8-7cd30ac4c9a6 - startTime:数据开始时间。示例:"2019-01-01 10:00:00", - endTime: 数据结束时间。示例:"2019-01-01 22:00:00" | Response Body: .. code-block:: javascript { msg_code: 200, msg_info: "成功", totalNum: 100, data: [ { plaza_unid: "83c2266f-a29b-478a-8a59-2ed54e144641", //(广场)门店唯一编码 gate_unid: "12c2266f-a29b-478a-8a59-2ed54e176533", //监控点唯一编码 countdate: "2018-01-01", //日期 counttime: "2018-01-01 10:00:00", //日期时间 counttimez: "2018-01-01T10:00:00+08:00", //带有时区信息的日期时间 innum: 100, //进客流 outnum: 100 //出客流 }, { plaza_unid: "83c2266f-a29b-478a-8a59-2ed54e144641", gate_unid: "12c2266f-a29b-478a-8a59-2ed54e176533", countdate: "2018-01-02", counttime: "2018-01-01 10:10:00", counttimez: "2018-01-01T10:10:00+08:00", innum: 100, outnum: 100 }, { plaza_unid: "83c2266f-a29b-478a-8a59-2ed54e144641", gate_unid: "12c2266f-a29b-478a-8a59-2ed54e176533", countdate: "2018-01-03", counttime: "2018-01-01 10:20:00", counttimez: "2018-01-01T10:20:00+08:00", innum: 100, outnum: 100 } ... ... ] } 增量十分钟级客流 =================== 根据门店unid以及modifytime获取门店的所有出入口在modifytime之后更新过的十分钟级客流数据。 | ``Verb``: GET | ``Path``: api/v1/passenger/increment/gateTenMins | ``Header``: (authorization, {$atoken}) | Request Params: - plaza_unid:广场(门店)唯一编码。示例:8734758a-e0b0-11e8-b6e8-7cd30ac4c9a6 - modify_time:数据最后更新时间,示例:"2019-01-01 12:00:00" | Response Body: .. code-block:: javascript { msg_code: 200, msg_info: "成功", totalNum: 100, data: [ { plaza_unid: "83c2266f-a29b-478a-8a59-2ed54e144641", //(广场)门店唯一编码 gate_unid: "12c2266f-a29b-478a-8a59-2ed54e176533", //监控点唯一编码 countdate: "2018-01-01", //日期 counttime: "2018-01-01 10:00:00", //日期时间 counttimez: "2018-01-01T10:00:00+08:00", //带有时区信息的日期时间 innum: 100, //进客流 outnum: 100, //出客流 modity_time:"2019-01-01 13:12:10" //更新时间 }, { plaza_unid: "83c2266f-a29b-478a-8a59-2ed54e144641", gate_unid: "12c2266f-a29b-478a-8a59-2ed54e176533", countdate: "2018-01-02", counttime: "2018-01-01 10:10:00", counttimez: "2018-01-01T10:10:00+08:00", innum: 100, outnum: 100, modity_time:"2019-01-01 13:12:10" }, { plaza_unid: "83c2266f-a29b-478a-8a59-2ed54e144641", gate_unid: "12c2266f-a29b-478a-8a59-2ed54e176533", countdate: "2018-01-03", counttime: "2018-01-01 10:20:00", counttimez: "2018-01-01T10:20:00+08:00", innum: 100, outnum: 100, modity_time:"2019-01-01 13:12:10" } ... ... ] } 区域客流 =================== 根据门店unid和日期获取区域客流数据。 | ``Verb``: GET | ``Path``: api/v1/passenger/gateRetentions | ``Header``: (authorization, {$atoken}) | Request Params: - plaza_unid:广场(门店)唯一编码。示例:8734758a-e0b0-11e8-b6e8-7cd30ac4c9a6 - startTime:数据开始时间。示例:”2019-01-01 10:00:00”, - endTime: 数据结束时间。示例:”2019-01-01 22:00:00” | Response Body: .. code-block:: javascript { msg_code: 200, msg_info: "成功", totalNum: 100, data: [ { plaza_unid: "83c2266f-a29b-478a-8a59-2ed54e144641", //(广场)门店唯一编码 gate_unid: "12c2266f-a29b-478a-8a59-2ed54e176533", //监控点唯一编码 countdate: "2018-01-01", //日期 counttime: "2018-01-01 10:00:00", //日期时间 counttimez: "2018-01-01T10:00:00+08:00", //带有时区信息的日期时间 num: 100 //客流总数 }, { plaza_unid: "83c2266f-a29b-478a-8a59-2ed54e144641", gate_unid: "12c2266f-a29b-478a-8a59-2ed54e176533", countdate: "2018-01-02", counttime: "2018-01-01 10:01:00", counttimez: "2018-01-01T10:01:00+08:00", num: 100 }, { plaza_unid: "83c2266f-a29b-478a-8a59-2ed54e144641", gate_unid: "12c2266f-a29b-478a-8a59-2ed54e176533", countdate: "2018-01-03", counttime: "2018-01-01 10:02:00", counttimez: "2018-01-01T10:02:00+08:00", num: 100 } ... ... ] } 增量区域客流 =================== 根据门店unid和日期获取区域客流数据。 | ``Verb``: GET | ``Path``: api/v1/passenger/increment/gateRetentions | ``Header``: (authorization, {$atoken}) | Request Params: - plaza_unid:广场(门店)唯一编码。示例:8734758a-e0b0-11e8-b6e8-7cd30ac4c9a6 - modify_time:数据最后更新时间,示例:”2019-01-01 12:00:00” | Response Body: .. code-block:: javascript { msg_code: 200, msg_info: "成功", totalNum: 100, data: [ { plaza_unid: "83c2266f-a29b-478a-8a59-2ed54e144641", //(广场)门店唯一编码 gate_unid: "12c2266f-a29b-478a-8a59-2ed54e176533", //监控点唯一编码 countdate: "2018-01-01", //日期 counttime: "2018-01-01 10:00:00", //日期时间 counttimez: "2018-01-01T10:00:00+08:00", //带有时区信息的日期时间 num: 100, //客流总数 modity_time:"2019-01-01 13:12:10" //更新时间 }, { plaza_unid: "83c2266f-a29b-478a-8a59-2ed54e144641", gate_unid: "12c2266f-a29b-478a-8a59-2ed54e176533", countdate: "2018-01-02", counttime: "2018-01-01 10:01:00", counttimez: "2018-01-01T10:01:00+08:00", num: 100, modity_time:"2019-01-01 13:12:10" }, { plaza_unid: "83c2266f-a29b-478a-8a59-2ed54e144641", gate_unid: "12c2266f-a29b-478a-8a59-2ed54e176533", countdate: "2018-01-03", counttime: "2018-01-01 10:02:00", counttimez: "2018-01-01T10:02:00+08:00", num: 100, modity_time:"2019-01-01 13:12:10" } ... ... ] }