## 敏感词模块

默认最多设置 50 个敏感词， 设置 2 小时后生效，目前仅支持 `文本消息(RC:TxtMsg)` 的敏感词过滤、替换功能

默认不过滤、不替换 Server API 发送的消息，需要过滤敏、替换请 [提交工单](https://developer.rongcloud.cn) 申请开通

敏感词替换目前只支持单聊、群聊、聊天室会话类型消息

### Sensitive.add(sensitive){#add}

添加敏感词

`sensitive` 参数的**属性说明**：

| 参数   	 |	类型		| 必填	| 说明 							|最低版本		|
| :----------|:--------	|:-----	|:------------------------------|:-------- |
|	keyword	 |	string	|	是 	| 敏感词，最长不超过 32 个字符，格式为汉字、数字、字母|3.0.0|
|	type 	 |	number	|	是 	| 0: 敏感词替换  1: 敏感词屏蔽 | 3.0.0|
|	replace  |	string	|	否 	| 敏感词替换，最长不超过 32 个字符， 敏感词屏蔽可以为空 | 3.0.0|

##### 请求成功

```json
{
    "code": 200
}
```

### Sensitive.remove(sensitive){#remove}

删除敏感词

`sensitive` 参数的**属性说明**：

| 参数   	 |	类型		| 必填	| 说明 							|最低版本		|
| :----------|:--------	|:-----	|:------------------------------|:-------- |
| keywords 	 |	array	|	是 	| 每次最多删除 50 个敏感词，2 小时后生效| 3.0.0|

##### 请求成功

```json
{
    "code": 200
}
```
### Sensitive.getList(sensitive){#getList}

获取敏感词列表

`sensitive` 参数的**属性说明**：

| 参数   	 |	类型		| 必填	| 说明 							|最低版本		|
| :----------|:--------	|:-----	|:------------------------------|:-------- |
|	type	 |	string	|	否 	| 敏感词类型，0: 敏感词替换， 1: 敏感词屏蔽， 为空获取全部| 3.0.0|

##### 请求成功

```json
{
	"code": 200,
	"words": [{
		"type": 0,
		"word": "黄赌毒",
		"replaceWord": "***"
	}]
}
```
| 参数   	 |	类型		| 说明 							|最低版本		|
| :----------|:--------	|:------------------------------|:-------- |
|	type	 |	string	| 敏感词类型，0: 敏感词替换， 1: 敏感词屏蔽|3.0.0|
|	keyword	 |	string	| 敏感词						|3.0.0|
|	replace  |	string	| 被替换的敏感词				| 3.0.0|
