Code Duplication    Length = 14-14 lines in 17 locations

src/API/DatacubeApi.php 17 locations

@@ 28-41 (lines=14) @@
25
     *
26
     * @return array
27
     */
28
    public function getusersummary($begin_date, $end_date)
29
    {
30
        $this->apitype = 'datacube';
31
        $this->module  = 'getusersummary';
32
33
        $queryStr = [
34
            'begin_date' => $begin_date,
35
            'end_date'   => $end_date,
36
        ];
37
38
        $res = $this->_post('', $queryStr);
39
40
        return $res;
41
    }
42
43
    /**
44
     * 获取累计用户数据 (最大时间跨度 7 天)
@@ 51-64 (lines=14) @@
48
     *
49
     * @return array
50
     */
51
    public function getusercumulate($begin_date, $end_date)
52
    {
53
        $this->apitype = 'datacube';
54
        $this->module  = 'getusercumulate';
55
56
        $queryStr = [
57
            'begin_date' => $begin_date,
58
            'end_date'   => $end_date,
59
        ];
60
61
        $res = $this->_post('', $queryStr);
62
63
        return $res;
64
    }
65
66
    /**
67
     * 图文分析数据接口
@@ 78-91 (lines=14) @@
75
     *
76
     * @return array
77
     */
78
    public function getarticlesummary($begin_date, $end_date)
79
    {
80
        $this->apitype = 'datacube';
81
        $this->module  = 'getarticlesummary';
82
83
        $queryStr = [
84
            'begin_date' => $begin_date,
85
            'end_date'   => $end_date,
86
        ];
87
88
        $res = $this->_post('', $queryStr);
89
90
        return $res;
91
    }
92
93
    /**
94
     * 获取图文群发总数据 (最大时间跨度 1 天)
@@ 101-114 (lines=14) @@
98
     *
99
     * @return array
100
     */
101
    public function getarticletotal($begin_date, $end_date)
102
    {
103
        $this->apitype = 'datacube';
104
        $this->module  = 'getarticletotal';
105
106
        $queryStr = [
107
            'begin_date' => $begin_date,
108
            'end_date'   => $end_date,
109
        ];
110
111
        $res = $this->_post('', $queryStr);
112
113
        return $res;
114
    }
115
116
    /**
117
     * 获取图文统计数据 (最大时间跨度 3 天)
@@ 124-137 (lines=14) @@
121
     *
122
     * @return array
123
     */
124
    public function getuserread($begin_date, $end_date)
125
    {
126
        $this->apitype = 'datacube';
127
        $this->module  = 'getuserread';
128
129
        $queryStr = [
130
            'begin_date' => $begin_date,
131
            'end_date'   => $end_date,
132
        ];
133
134
        $res = $this->_post('', $queryStr);
135
136
        return $res;
137
    }
138
139
    /**
140
     * 获取图文统计分时数据 (最大时间跨度 1 天)
@@ 147-160 (lines=14) @@
144
     *
145
     * @return array
146
     */
147
    public function getuserreadhour($begin_date, $end_date)
148
    {
149
        $this->apitype = 'datacube';
150
        $this->module  = 'getuserreadhour';
151
152
        $queryStr = [
153
            'begin_date' => $begin_date,
154
            'end_date'   => $end_date,
155
        ];
156
157
        $res = $this->_post('', $queryStr);
158
159
        return $res;
160
    }
161
162
    /**
163
     * 获取图文分享转发数据 (最大时间跨度 7 天)
@@ 170-183 (lines=14) @@
167
     *
168
     * @return array
169
     */
170
    public function getusershare($begin_date, $end_date)
171
    {
172
        $this->apitype = 'datacube';
173
        $this->module  = 'getusershare';
174
175
        $queryStr = [
176
            'begin_date' => $begin_date,
177
            'end_date'   => $end_date,
178
        ];
179
180
        $res = $this->_post('', $queryStr);
181
182
        return $res;
183
    }
184
185
    /**
186
     * 获取图文分享转发分时数据 (最大时间跨度 1 天)
@@ 193-206 (lines=14) @@
190
     *
191
     * @return array
192
     */
193
    public function getusersharehour($begin_date, $end_date)
194
    {
195
        $this->apitype = 'datacube';
196
        $this->module  = 'getusersharehour';
197
198
        $queryStr = [
199
            'begin_date' => $begin_date,
200
            'end_date'   => $end_date,
201
        ];
202
203
        $res = $this->_post('', $queryStr);
204
205
        return $res;
206
    }
207
208
    /**
209
     * 消息分析数据接口
@@ 220-233 (lines=14) @@
217
     *
218
     * @return array
219
     */
220
    public function getupstreammsg($begin_date, $end_date)
221
    {
222
        $this->apitype = 'datacube';
223
        $this->module  = 'getupstreammsg';
224
225
        $queryStr = [
226
            'begin_date' => $begin_date,
227
            'end_date'   => $end_date,
228
        ];
229
230
        $res = $this->_post('', $queryStr);
231
232
        return $res;
233
    }
234
235
    /**
236
     * 获取消息分送分时数据 (最大时间跨度 1 天)
@@ 243-256 (lines=14) @@
240
     *
241
     * @return array
242
     */
243
    public function getupstreammsghour($begin_date, $end_date)
244
    {
245
        $this->apitype = 'datacube';
246
        $this->module  = 'getupstreammsghour';
247
248
        $queryStr = [
249
            'begin_date' => $begin_date,
250
            'end_date'   => $end_date,
251
        ];
252
253
        $res = $this->_post('', $queryStr);
254
255
        return $res;
256
    }
257
258
    /**
259
     * 获取消息发送周数据 (最大时间跨度 30 天)
@@ 266-279 (lines=14) @@
263
     *
264
     * @return array
265
     */
266
    public function getupstreammsgweek($begin_date, $end_date)
267
    {
268
        $this->apitype = 'datacube';
269
        $this->module  = 'getupstreammsgweek';
270
271
        $queryStr = [
272
            'begin_date' => $begin_date,
273
            'end_date'   => $end_date,
274
        ];
275
276
        $res = $this->_post('', $queryStr);
277
278
        return $res;
279
    }
280
281
    /**
282
     * 获取消息发送月数据 (最大时间跨度 30 天)
@@ 289-302 (lines=14) @@
286
     *
287
     * @return array
288
     */
289
    public function getupstreammsgmonth($begin_date, $end_date)
290
    {
291
        $this->apitype = 'datacube';
292
        $this->module  = 'getupstreammsgmonth';
293
294
        $queryStr = [
295
            'begin_date' => $begin_date,
296
            'end_date'   => $end_date,
297
        ];
298
299
        $res = $this->_post('', $queryStr);
300
301
        return $res;
302
    }
303
304
    /**
305
     * 获取消息发送分布数据 (最大时间跨度 15 天)
@@ 312-325 (lines=14) @@
309
     *
310
     * @return array
311
     */
312
    public function getupstreammsgdist($begin_date, $end_date)
313
    {
314
        $this->apitype = 'datacube';
315
        $this->module  = 'getupstreammsgdist';
316
317
        $queryStr = [
318
            'begin_date' => $begin_date,
319
            'end_date'   => $end_date,
320
        ];
321
322
        $res = $this->_post('', $queryStr);
323
324
        return $res;
325
    }
326
327
    /**
328
     * 获取消息发送分布周数据 (最大时间跨度 30 天)
@@ 335-348 (lines=14) @@
332
     *
333
     * @return array
334
     */
335
    public function getupstreammsgdistweek($begin_date, $end_date)
336
    {
337
        $this->apitype = 'datacube';
338
        $this->module  = 'getupstreammsgdistweek';
339
340
        $queryStr = [
341
            'begin_date' => $begin_date,
342
            'end_date'   => $end_date,
343
        ];
344
345
        $res = $this->_post('', $queryStr);
346
347
        return $res;
348
    }
349
350
    /**
351
     * 获取消息发送分布月数据 (最大时间跨度 30 天)
@@ 358-371 (lines=14) @@
355
     *
356
     * @return array
357
     */
358
    public function getupstreammsgdistmonth($begin_date, $end_date)
359
    {
360
        $this->apitype = 'datacube';
361
        $this->module  = 'getupstreammsgdistmonth';
362
363
        $queryStr = [
364
            'begin_date' => $begin_date,
365
            'end_date'   => $end_date,
366
        ];
367
368
        $res = $this->_post('', $queryStr);
369
370
        return $res;
371
    }
372
373
    /**
374
     * 接口分析数据接口
@@ 385-398 (lines=14) @@
382
     *
383
     * @return array
384
     */
385
    public function getinterfacesummary($begin_date, $end_date)
386
    {
387
        $this->apitype = 'datacube';
388
        $this->module  = 'getinterfacesummary';
389
390
        $queryStr = [
391
            'begin_date' => $begin_date,
392
            'end_date'   => $end_date,
393
        ];
394
395
        $res = $this->_post('', $queryStr);
396
397
        return $res;
398
    }
399
400
    /**
401
     * 获取接口分析分时数据 (最大时间跨度 1 天)
@@ 408-421 (lines=14) @@
405
     *
406
     * @return array
407
     */
408
    public function getinterfacesummaryhour($begin_date, $end_date)
409
    {
410
        $this->apitype = 'datacube';
411
        $this->module  = 'getinterfacesummaryhour';
412
413
        $queryStr = [
414
            'begin_date' => $begin_date,
415
            'end_date'   => $end_date,
416
        ];
417
418
        $res = $this->_post('', $queryStr);
419
420
        return $res;
421
    }
422
}
423