| Total Complexity | 7 |
| Total Lines | 54 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | class Token extends Sobot |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * 接口请求方式 |
||
| 18 | * |
||
| 19 | * @return string |
||
| 20 | * @author herry.yao <[email protected]> |
||
| 21 | * @version 1.2.2 |
||
| 22 | * @date 2020-08-05 |
||
| 23 | */ |
||
| 24 | public function getRequestMethod(): string |
||
| 25 | { |
||
| 26 | return self::METHOD_GET; |
||
| 27 | } |
||
| 28 | |||
| 29 | |||
| 30 | /** |
||
| 31 | * 接口请求地址 |
||
| 32 | * |
||
| 33 | * @return string |
||
| 34 | * @author herry.yao <[email protected]> |
||
| 35 | * @version 1.2.2 |
||
| 36 | * @date 2020-08-05 |
||
| 37 | */ |
||
| 38 | public function getRequestPath(): string |
||
| 41 | } |
||
| 42 | |||
| 43 | /** |
||
| 44 | * 获取智齿TOKEN |
||
| 45 | * |
||
| 46 | * @param bool $updating |
||
| 47 | * @return mixed|string |
||
| 48 | * @throws \GuzzleHttp\Exception\GuzzleException |
||
| 49 | * @throws \MuCTS\Sobot\Exceptions\ResponseException |
||
| 50 | * @throws \MuCTS\Sobot\Exceptions\SobotException| |
||
| 51 | * @throws \MuCTS\Sobot\Exceptions\ConfigException |
||
| 52 | * @author herry.yao <[email protected]> |
||
| 53 | * @version 1.2.2 |
||
| 54 | * @date 2020-08-05 |
||
| 55 | */ |
||
| 56 | public function getToken($updating = false) |
||
| 68 | } |
||
| 69 | } |