Client.php 726 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. /*
  3. * This file is part of the overtrue/wechat.
  4. *
  5. * (c) overtrue <i@overtrue.me>
  6. *
  7. * This source file is subject to the MIT license that is bundled
  8. * with this source code in the file LICENSE.
  9. */
  10. namespace EasyWeChat\Work\Base;
  11. use EasyWeChat\Kernel\BaseClient;
  12. /**
  13. * Class Client.
  14. *
  15. * @author mingyoung <mingyoungcheung@gmail.com>
  16. */
  17. class Client extends BaseClient
  18. {
  19. /**
  20. * Get callback ip.
  21. *
  22. * @return \Psr\Http\Message\ResponseInterface|\EasyWeChat\Kernel\Support\Collection|array|object|string
  23. *
  24. * @throws \EasyWeChat\Kernel\Exceptions\InvalidConfigException
  25. */
  26. public function getCallbackIp()
  27. {
  28. return $this->httpGet('cgi-bin/getcallbackip');
  29. }
  30. }