All Downloads are FREE. Search and download functionalities are using the official Maven repository.

jsonsource.message.group.api.json Maven / Gradle / Ivy

{
	"send": {
		"url": "message/group/publish",
		"params": {
			"groupMessage": {
				"conversationType": 1,
				"senderId": "2191",
				"targetId": ["2192","2193"],
				"objectName": "RC:TxtMsg",
				"content": {
					"content":"hello"
				},
				"pushContent": "thisisapush",
				"pushData": {
					"pushData":"hello"
				},
				"isCounted": "1",
				"verifyBlacklist": 0,
				"isPersisted": 1,
				"isCounted": 1,
				"isIncludeSender": 0
			}
		},
		"response": {
			"success": {
				"code": "200",
				"errorMessage": "成功返回"
			},
			"fail": {
				"20002": {
					"code": "1002",
					"errorMessage": "{{name}} 个数超限, {{name}} >= {{min}} 且 {{name}} <= {{max}}"
				},
				"20003": {
					"code": "1002",
					"errorMessage": "{{name}} 长度超限, {{name}} >= {{min}} 且 {{name}} <= {{max}}"
				},
				"20005": {
					"code": "1002",
					"errorMessage": "{{name}} 参数为必传项"
				},
				"20001": {
					"code": "1002",
					"errorMessage": "参数类型不正确,请检查参数类型,应该为 {{type}} 传入为 {{currentType}} "
				},
				"1004": {
					"code": "1004",
					"errorMessage": "签名错误, 请排查 Appkey、Secret 是否正确"
				}
			}
		}
	},
	"sendMention": {
		"url": "message/group/publish",
		"params": {
			"mentionMessage": {
				"senderId": "2191",
				"targetId": "2192",
				"objectName": "RC:TxtMsg",
				"content": {
					"content":"hello",
					"mentionedInfo": {
						"type": 1,
						"userIds": ["userId"]
					}
				}
			}
		},
		"response": {
			"success": {
				"code": "200",
				"msg": "成功返回"
			},
			"fail": {
				"20002": {
					"code": "1002",
					"msg": "{{name}} 个数超限, {{name}} >= {{min}} 且 {{name}} <= {{max}}"
				},
				"20003": {
					"code": "1002",
					"msg": "{{name}} 长度超限, {{name}} >= {{min}} 且 {{name}} <= {{max}}"
				},
				"20005": {
					"code": "1002",
					"msg": "{{name}} 参数为必传项"
				},
				"1501": {
					"code": "1002",
					"msg": "参数类型不正确,请检查参数类型,应该为 {{type}} 传入为 {{currentType}} "
				},
				"1004": {
					"code": "1004",
					"msg": "签名错误, 请排查 Appkey、Secret 是否正确"
				}
			}
		}
	},
	"recall": {
		"docs": "http://rongcloud.cn/docs/server.html#message_recall",
		"url": "message/recall",
		"params": {
			"recallMessage": {
				"senderId": "fDR2cVpxxR5zSMUNh3yAwh",
				"targetId": "MersNRhaKwJkRV9mJR5JXY",
				"uId": "5FGT-7VA9-G4DD-4V5P",
				"sentTime": "20007778882124"
			}
		},
		"response": {
			"success": {
				"code": "200",
				"errorMessage": "成功返回"
			},
			"fail": {
				"20001": {
					"code": "1002",
					"errorMessage": "参数类型不正确,请检查参数类型,应该为 {{type}} 传入为 {{currentType}} "
				},
				"20002": {
					"code": "1002",
					"errorMessage": "{{name}} 个数超限, {{name}} >= {{min}} 且 {{name}} <= {{max}}"
				},
				"20003": {
					"code": "1002",
					"errorMessage": "{{name}} 度超限, {{name}} >= {{min}} 且 {{name}} <= {{max}}"
				},
				"20005": {
					"code": "1002",
					"errorMessage": "{{name}} 参数为必传项"
				},
				"1004": {
					"code": "1004",
					"errorMessage": "签名错误, 请排查 Appkey、Secret 是否正确"
				},
				"1008": {
					"code": "1008",
					"errorMessage": "调用频率超限,每秒钟限制 20 次,调整频率上限请移步至专有云 http://www.rongcloud.cn/pricing#pay"
				}
			}
		}
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy