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

jsonsource.chatroom.api.json Maven / Gradle / Ivy

{
	"create": {
		"docs": "http://rongcloud.cn/docs/server.html#chatroom_create",
		"url": "chatroom/create",
		"params": {
			"chatroom": [{
				"id": "chatroomId01",
				"name": "大融云"
			}]
		},
		"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": "参数类型不正确,请检查参数类型,应该为 Object 传入为 {{currentType}} "
				},
				"1004": {
					"code": "1004",
					"errorMessage": "签名错误, 请排查 Appkey、Secret 是否正确"
				},
				"1008": {
					"code": "1008",
					"errorMessage": "调用频率超限,每秒钟限制 100 次,调整频率上限请移步至专有云 http://www.rongcloud.cn/pricing#pay"
				}
			}
		}
	},
	"destory": {
		"docs": "http://rongcloud.cn/docs/server.html#chatroom_destroy",
		"url": "chatroom/destroy",
		"params": {
			"chatroom": [{
				"id": "chatroomId01"
			}]
		},
		"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": "参数类型不正确,请检查参数类型,应该为 Object 传入为 {{currentType}} "
				},
				"1004": {
					"code": "1004",
					"errorMessage": "签名错误, 请排查 Appkey、Secret 是否正确"
				},
				"1008": {
					"code": "1008",
					"errorMessage": "调用频率超限,每秒钟限制 100 次,调整频率上限请移步至专有云 http://www.rongcloud.cn/pricing#pay"
				}
			}
		}
	},
	"get": {
		"docs": "http://rongcloud.cn/docs/server.html#chatroom_user_query",
		"url": "chatroom/user/query",
		"params": {
			"chatroom": {
				"id": "chatromId01",
				"count": 10,
				"order": 1
			}
		},
		"response": {
			"success": {
				"code": 200,
				"total": 1000,
				"members": [{
					"id": "member1",
					"time": "2015-09-10 16:38:26"
				}, {
					"id": "member2",
					"time": "2015-09-10 16:38:26"
				}]
			},
			"fail": {
				"20003": {
					"code": "1002",
					"errorMessage": "{{name}} 长度超限, {{name}} >= {{min}} 且 {{name}} <= {{max}} 单位: 字节"
				},
				"20005": {
					"code": "1002",
					"errorMessage": "{{name}} 参数为必传项"
				},
				"20001": {
					"code": "1002",
					"errorMessage": "参数类型不正确,请检查参数类型,应该为 Object 传入为 {{currentType}} "
				},
				"1004": {
					"code": "1004",
					"errorMessage": "签名错误, 请排查 Appkey、Secret 是否正确"
				},
				"1008": {
					"code": "1008",
					"errorMessage": "调用频率超限,每秒钟限制 100 次,调整频率上限请移步至专有云 http://www.rongcloud.cn/pricing#pay"
				}
			}
		}
	},
	"isExist": {
		"docs": "http://rongcloud.cn/docs/server.html#chatroom_user_exist",
		"url": "chatroom/user/exist",
		"params": {
			"member": {
				"id": "memberId01",
				"chatroomId": ["chatroomId01"]
			}
		},
		"response": {
			"success": {
				"code": "200",
				"errorMessage": "成功返回"
			},
			"fail": {
				"20003": {
					"code": "1002",
					"errorMessage": "{{name}} 长度超限, {{name}} >= {{min}} 且 {{name}} <= {{max}} 单位: 字节"
				},
				"20005": {
					"code": "1002",
					"errorMessage": "{{name}} 参数为必传项"
				},
				"20001": {
					"code": "1002",
					"errorMessage": "参数类型不正确,请检查参数类型,应该为 Object 传入为 {{currentType}} "
				},
				"1004": {
					"code": "1004",
					"errorMessage": "签名错误, 请排查 Appkey、Secret 是否正确"
				},
				"1008": {
					"code": "1008",
					"errorMessage": "调用频率超限,每秒钟限制 100 次,调整频率上限请移步至专有云 http://www.rongcloud.cn/pricing#pay"
				}
			}
		}
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy