Path-parameters:
参数 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
result_id | int | 是 | resp.json()["data"]["result_id"] | 查询结果ID |
bc
为创建的 RangersClient, 其初始化请参考使用说明,各语言的 SDK 都提供了类似的接口。
调用(Python):
dsl = { "version": 3, "app_ids": [164***], "use_app_cloud_id": True, "periods": [ { "granularity": "day", "type": "last", "last": { "amount": 5, "unit": "day" }, "timezone": "Asia/Shanghai" } ], "content": { "query_type": "event", "profile_groups_v2": [], "profile_filters": [], "queries": [ [ { "event_type": "origin", "show_name": "活跃用户数", "event_name": "app_launch", "groups_v2": [], "filters": [], "show_label": "active_user", "event_indicator": "event_users" } ] ], "option": { "skip_cache": False } } } # 私有化逻辑 resp = bc.data_finder("/openapi/v1/analysis", body=dsl) result_id = resp.json()["data"]["result_id"] resp2 = bc.data_finder(f"/openapi/v1/analysis/{result_id}/result") print(resp2.content)