Path:/openapi/v1/usage_amount/daily
Method: POST
Content-type: application/json
Body: 参考公共参数说明
Response:
{ "code": 200, "message": "success", "data": { "${app_id}": { "day_usage_amount": { "{day}": { "dau": 1, "events_num": 1 }, "app_info": { "app_name": xx, "app_en_name": xx } } } }
数据格式为data.${app_id}.day_usage_amount.${day}: {具体的内容}
。
mont的格式为 yyyyMM
dd
Field | Type | Description |
---|---|---|
dau | int | DAU的值 |
events_num | int | 事件量统计 |
bc
为创建的 RangersClient, 其初始化请参考使用说明, 各语言的 SDK 都提供了类似的接口
调用(Python)::
body={ "org_id": null, "app_ids": [164314], "start_time": 1643644800, # 2022年2月1日 "end_time": 1645977600 # 2022年2月28日 } res = bc.data_finder('/openapi/v1/usage_amount/daily', body={body}) print(res.content)
返回结果:
{ "code": 200, "message": "success", "data": { "164314": { "day_usage_amount": { "20220201": { "dau": 1, "events_num": 1 }, "20220202": { "dau": 1, "events_num": 1 }, "20220203": { "dau": 1, "events_num": 1 }, ... ... ... "20220228": { "dau": 1, "events_num": 1 } }, "app_info": { "app_name": "rangers_164314_ceshi", "app_en_name": "rangers_164314_ceshi" } } } }