for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace EasyIM\TencentIM\Speak;
use EasyIM\Kernel\BaseClient;
/**
* Class Client
*
* @package EasyIM\TencentIM\Speak
* @author longing <[email protected]>
*/
class Client extends BaseClient
{
* Query user forbidden words.
* @param string $account
* @return array|\EasyIM\Kernel\Support\Collection|object|\Psr\Http\Message\ResponseInterface|string
* @throws \EasyIM\Kernel\Exceptions\InvalidConfigException
* @throws \GuzzleHttp\Exception\GuzzleException
public function getGlobalNoSpeaking(string $account)
$params = [
'Get_Account' => $account
];
return $this->httpPostJson('openconfigsvr/getnospeaking', $params);
}
* Set user forbidden words.
* @param int $c2cMsgNoSpeakingTime
* @param int $groupMsgNoSpeakingTime
public function setGlobalNoSpeaking(string $account, int $c2cMsgNoSpeakingTime = 0, int $groupMsgNoSpeakingTime = 0)
'Set_Account' => $account,
'C2CmsgNospeakingTime' => $c2cMsgNoSpeakingTime,
'GroupmsgNospeakingTime' => $groupMsgNoSpeakingTime,
return $this->httpPostJson('openconfigsvr/setnospeaking', $params);