OssDirectUrl::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\OnlineService;
14
15
16
use MuCTS\Sobot\Contracts\Sobot;
17
18
/**
19
 * Class DirectUrl
20
 * 单点登录接口
21
 *
22
 * 接口说明:
23
 * 接口类型:主动调用接口。
24
 * 接口作用:可通过调用该接口来获取一个临时的URL,通过访问该URL即可直接进入某账号的智齿客服后台,从而实现单点登录的业务。
25
 *
26
 * @property-write string $agent_email 客服邮箱
27
 * @property-write int type 登录页面,1:旧版工作台,2:新版工作台,如果不传,返回的页面链接是智齿管理后台页面
28
 *
29
 * @method OssDirectUrl agentEmail(string $value) 客服邮箱
30
 * @method OssDirectUrl type(int $value) 登录页面,1:旧版工作台,2:新版工作台,如果不传,返回的页面链接是智齿管理后台页面
31
 *
32
 * @package MuCTS\Sobot\OnlineService
33
 */
34
class OssDirectUrl extends Sobot
35
{
36
37
    public function getRequestMethod(): string
38
    {
39
        return self::METHOD_POST;
40
    }
41
42
    public function getRequestPath(): string
43
    {
44
        return '/api/oss/5/direct_url';
45
    }
46
}