Client.php 841 B

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. /**
  3. * This file is part of the apiadmin/tiktok.
  4. */
  5. namespace App\Libs\TikTok\OpenPlatform\FansData;
  6. use App\Libs\TikTok\Kernel\BaseClient;
  7. use App\Libs\TikTok\Kernel\Exceptions\HttpException;
  8. use App\Libs\TikTok\Kernel\Exceptions\InvalidConfigException;
  9. use App\Libs\TikTok\Kernel\Support\Collection;
  10. use GuzzleHttp\Exception\GuzzleException;
  11. use Psr\Http\Message\ResponseInterface;
  12. /**
  13. * Class Client.
  14. *
  15. * @author zhaoxiang <zhaoxiang051405@gmail.com>
  16. */
  17. class Client extends BaseClient {
  18. protected $postAccessToken = false;
  19. /**
  20. * 获取用户粉丝数据
  21. * @return array|Collection|object|ResponseInterface|string
  22. * @throws GuzzleException
  23. * @throws HttpException
  24. * @throws InvalidConfigException
  25. */
  26. public function data() {
  27. return $this->httpGet('fans/data/');
  28. }
  29. }