Client   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
eloc 3
c 1
b 0
f 0
dl 0
loc 32
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A get() 0 3 1
A getStyles() 0 3 1
1
<?php
2
3
namespace CloudyCity\KuaishouMarketingSDK\Tool\CreativeWord;
4
5
use CloudyCity\KuaishouMarketingSDK\Kernel\BaseClient;
6
7
class Client extends BaseClient
8
{
9
    /**
10
     * 获取动态词包列表.
11
     *
12
     * @link https://yiqixie.com/d/home/fcACuwYpSB3pFCkgbykniO7_h#
13
     *
14
     * @throws \CloudyCity\KuaishouMarketingSDK\Kernel\Exceptions\ApiException
15
     * @throws \CloudyCity\KuaishouMarketingSDK\Kernel\Exceptions\InvalidArgumentException
16
     * @throws \GuzzleHttp\Exception\GuzzleException
17
     *
18
     * @return array|\CloudyCity\KuaishouMarketingSDK\Kernel\Support\Collection|object|\Psr\Http\Message\ResponseInterface|string
19
     */
20
    public function get()
21
    {
22
        return $this->httpGetJson('v1/tool/creative_word/list');
23
    }
24
25
    /**
26
     * 获取贴纸样式列表.
27
     *
28
     * @link https://yiqixie.com/d/home/fcACuwYpSB3pFCkgbykniO7_h#
29
     *
30
     * @throws \CloudyCity\KuaishouMarketingSDK\Kernel\Exceptions\ApiException
31
     * @throws \CloudyCity\KuaishouMarketingSDK\Kernel\Exceptions\InvalidArgumentException
32
     * @throws \GuzzleHttp\Exception\GuzzleException
33
     *
34
     * @return array|\CloudyCity\KuaishouMarketingSDK\Kernel\Support\Collection|object|\Psr\Http\Message\ResponseInterface|string
35
     */
36
    public function getStyles()
37
    {
38
        return $this->httpGetJson('v1/tool/creative_word/styles');
39
    }
40
}
41