# 第三方 HTTP 集成
第三方可以通过Http 形式Dump到节点树信息
- 访问方式:GET|POST
- 返回数据格式:JSON
- HTTP 访问地址: 设置ip:9090/api/dump
返回数据:
{
"code": 1,
"data": {
"config": {
"appName": "未知",
"currentPage": "com.aojoy.aplug",
"display": {
"density": 3.0,
"densityDpi": 480,
"heightPixels": 2160,
"noncompatDensityDpi": 480,
"noncompatHeightPixels": 2160,
"noncompatWidthPixels": 1080,
"scaledDensity": 3.0,
"widthPixels": 1080,
"xdpi": 428.625,
"ydpi": 428.625
},
"viewCount": 0
},
"views": [{
"canScroll": false,
"childCount": 0,
"childs": [{
"canScroll": false,
"childCount": 0,
"childs": [{
"canScroll": false,
"childCount": 0,
"childs": [],
"choose": false,
"click": true,
"describe": "返回",
"editor": false,
"id": "com.android.systemui:id/back",
"isVisable": true,
"lev": 2,
"packge": "com.android.systemui",
"path": "/FrameLayout/FrameLayout/ImageView",
"rect": {
"bottom": 2160,
"left": 219,
"right": 399,
"top": 2032
},
"type": "ImageView"
}, {
"canScroll": false,
"childCount": 0,
"childs": [],
"choose": false,
"click": true,
"describe": "最近运行的应用",
"editor": false,
"id": "com.android.systemui:id/recent_apps",
"isVisable": true,
"lev": 2,
"packge": "com.android.systemui",
"path": "/FrameLayout/FrameLayout/ImageView",
"rect": {
"bottom": 2160,
"left": 679,
"right": 859,
"top": 2032
},
"type": "ImageView"
}],
"type": "FrameLayout"
}]
},
"msg": "获取成功"
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72