Client.php 669 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. namespace app\framework\EasyWechat\Work;
  3. use EasyWeChat\Work\ExternalContact\Client as BaseClient;
  4. class Client extends BaseClient
  5. {
  6. public function getCorpTags(array $tagIds = [], array $groupIds = [])
  7. {
  8. $params = [
  9. 'tag_id' => $tagIds,
  10. 'group_id' => $groupIds
  11. ];
  12. return $this->httpPostJson('cgi-bin/externalcontact/get_corp_tag_list', $params);
  13. }
  14. public function getGroupChat(string $chatId)
  15. {
  16. $params = [
  17. 'chat_id' => $chatId,
  18. 'need_name' => 1,
  19. ];
  20. return $this->httpPostJson('cgi-bin/externalcontact/groupchat/get', $params);
  21. }
  22. }