Reply.php 885 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. /**
  11. * Reply.php.
  12. *
  13. * @author overtrue <i@overtrue.me>
  14. * @copyright 2015 overtrue <i@overtrue.me>
  15. *
  16. * @see https://github.com/overtrue
  17. * @see http://overtrue.me
  18. */
  19. namespace EasyWeChat\Reply;
  20. use EasyWeChat\Core\AbstractAPI;
  21. /**
  22. * Class Reply.
  23. */
  24. class Reply extends AbstractAPI
  25. {
  26. const API_GET_CURRENT_SETTING = 'https://api.weixin.qq.com/cgi-bin/get_current_autoreply_info';
  27. /**
  28. * Get current auto reply settings.
  29. *
  30. * @return \EasyWeChat\Support\Collection
  31. */
  32. public function current()
  33. {
  34. return $this->parseJSON('get', [self::API_GET_CURRENT_SETTING]);
  35. }
  36. }