123456789101112131415161718192021222324252627282930313233343536 |
- <?php
- /**
- * This file is part of the apiadmin/tiktok.
- */
- namespace App\Libs\TikTok\OpenPlatform\FansData;
- use App\Libs\TikTok\Kernel\BaseClient;
- use App\Libs\TikTok\Kernel\Exceptions\HttpException;
- use App\Libs\TikTok\Kernel\Exceptions\InvalidConfigException;
- use App\Libs\TikTok\Kernel\Support\Collection;
- use GuzzleHttp\Exception\GuzzleException;
- use Psr\Http\Message\ResponseInterface;
- /**
- * Class Client.
- *
- * @author zhaoxiang <zhaoxiang051405@gmail.com>
- */
- class Client extends BaseClient {
- protected $postAccessToken = false;
- /**
- * 获取用户粉丝数据
- * @return array|Collection|object|ResponseInterface|string
- * @throws GuzzleException
- * @throws HttpException
- * @throws InvalidConfigException
- */
- public function data() {
- return $this->httpGet('fans/data/');
- }
- }
|