User::info()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 3
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 5
rs 10
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Promopult\TikTokMarketingApi\Service;
6
7
/**
8
 * @psalm-suppress UnusedClass
9
 */
10
final class User extends \Promopult\TikTokMarketingApi\AbstractService
11
{
12
    /**
13
     * Getting user information
14
     *
15
     * @return array
16
     *
17
     * @throws \Psr\Http\Client\ClientExceptionInterface
18
     *
19
     * @see https://ads.tiktok.com/marketing_api/docs?id=100680
20
     */
21
    public function info(): array
22
    {
23
        return $this->requestApi(
24
            'GET',
25
            '/open_api/v1.3/user/info/'
26
        );
27
    }
28
}
29