ExportData::getRequestMethod()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 0
1
<?php
2
/**
3
 * This file is part of the mucts.com.
4
 *
5
 * This source file is subject to the MIT license that is bundled
6
 * with this source code in the file LICENSE.
7
 *
8
 * @version 1.0
9
 * @author herry<[email protected]>
10
 * @copyright © 2020  MuCTS.com All Rights Reserved.
11
 */
12
13
namespace MuCTS\Sobot\OnlineStatistics;
14
15
use MuCTS\Sobot\Contracts\Sobot;
16
17
/**
18
 * Class ExportData
19
 *
20
 * 离线数据文件下载接口
21
 *
22
 * 接口说明:
23
 * 接口类型:主动调用接口。
24
 * 接口作用:可通过调用该接口来获取各个业务模块的原始数据,可用于企业对数据归档或做数据分析等。
25
 * 注意:若需要使用该接口下载离线数据,需提前通知智齿进行数据整理安排,否则无法下载到数据。
26
 *
27
 * @method ExportData whereTaskType(int $value) 任务类型, 1:visit, 2:conversation, 3:evaluation, 4:msg, 5:user, 6:ticket
28
 * @method ExportData whereDate(string $value) 日期, 日期(yyyy-MM-dd)
29
 * @package MuCTS\Sobot\OnlineStatistics
30
 */
31
class ExportData extends Sobot
32
{
33
    const TASK_TYPE_VISIT = 1;
34
    const TASK_TYPE_CONVERSATION = 2;
35
    const TASK_TYPE_EVALUATION = 3;
36
    const TASK_TYPE_MSG = 4;
37
    const TASK_TYPE_USER = 5;
38
    const TASK_TYPE_TICKET = 6;
39
40
    public function getRequestMethod(): string
41
    {
42
        return self::METHOD_POST;
43
    }
44
45
    public function getRequestPath(): string
46
    {
47
        return '/api/wb/5/data/export_data';
48
    }
49
}