Client::getFunds()   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
namespace CloudyCity\KuaishouMarketingSDK\Advertiser;
4
5
use CloudyCity\KuaishouMarketingSDK\Kernel\BaseClient;
6
7
class Client extends BaseClient
8
{
9
    /**
10
     * 获取广告账户信息.
11
     *
12
     * @link https://yiqixie.com/d/home/fcAB8NFoHn82gbNSTAM4rU2re
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 getInfo()
21
    {
22
        return $this->httpGetJson('v1/advertiser/info');
23
    }
24
25
    /**
26
     * 获取广告账户余额信息.
27
     *
28
     * @link https://yiqixie.com/d/home/fcAB8NFoHn82gbNSTAM4rU2re
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 getFunds()
37
    {
38
        return $this->httpGetJson('v1/advertiser/fund/get');
39
    }
40
41
    /**
42
     * 获取广告账户余额信息.
43
     *
44
     * @link https://yiqixie.com/d/home/fcAB8NFoHn82gbNSTAM4rU2re
45
     *
46
     * @param array $params
47
     *
48
     * @throws \CloudyCity\KuaishouMarketingSDK\Kernel\Exceptions\ApiException
49
     * @throws \CloudyCity\KuaishouMarketingSDK\Kernel\Exceptions\InvalidArgumentException
50
     * @throws \GuzzleHttp\Exception\GuzzleException
51
     *
52
     * @return array|\CloudyCity\KuaishouMarketingSDK\Kernel\Support\Collection|object|\Psr\Http\Message\ResponseInterface|string
53
     */
54
    public function getFlows(array $params)
55
    {
56
        return $this->httpGetJson('v1/advertiser/fund/daily_flows', $params);
57
    }
58
59
    /**
60
     * 获取广告账户日预算.
61
     *
62
     * @link https://yiqixie.com/d/home/fcAB8NFoHn82gbNSTAM4rU2re
63
     *
64
     * @throws \CloudyCity\KuaishouMarketingSDK\Kernel\Exceptions\ApiException
65
     * @throws \CloudyCity\KuaishouMarketingSDK\Kernel\Exceptions\InvalidArgumentException
66
     * @throws \GuzzleHttp\Exception\GuzzleException
67
     *
68
     * @return array|\CloudyCity\KuaishouMarketingSDK\Kernel\Support\Collection|object|\Psr\Http\Message\ResponseInterface|string
69
     */
70
    public function getBudget()
71
    {
72
        return $this->httpGetJson('v1/advertiser/budget/get');
73
    }
74
}
75