質問編集履歴

1

文字修正

2020/05/21 05:00

投稿

kaoru_tujimiya
kaoru_tujimiya

スコア36

test CHANGED
File without changes
test CHANGED
@@ -32,63 +32,17 @@
32
32
 
33
33
  ```react
34
34
 
35
- const sendQuery = async () => {
35
+ const Query = async () => {
36
36
 
37
37
  const arg = {
38
38
 
39
39
  path: '/v4/reports:batchGet',
40
40
 
41
- root: 'https://analyticsreporting.googleapis.com/',
42
-
43
- method: 'POST',
44
-
45
- body: {
46
-
47
- reportRequests: [
48
-
49
- {
50
-
51
- viewId: state.viewId,
52
-
53
- dateRanges: [
54
-
55
- {
56
-
57
- startDate: state.startDate,
58
-
59
- endDate: state.endDate,
60
-
61
- },
62
-
63
- ],
64
-
65
- metrics: [
66
-
67
- {
68
-
69
- expression: state.users,
70
-
71
- },
72
-
73
- {
74
-
75
- expression: state.pageviews,
76
-
77
- },
78
-
79
- ],
80
-
81
- },
82
-
83
- ],
84
-
85
- },
86
-
87
41
  }
88
42
 
89
43
 
90
44
 
91
- const res = await gapiRequest(arg).catch((err) => err)
45
+ const res = await aa(arg).catch((err) => err)
92
46
 
93
47
  }
94
48