当前位置 : 主页 > 编程语言 > java >

测试短信接口代码

来源:互联网 收集:自由互联 发布时间:2021-06-28
setFormHttpEntity(httpPost, apiCase); String uri = "http://101.200.194.158:8087/sms/send_text_singlego";String uri = "http://101.200.194.158:8087/sms/send_text_batch";Map apiCase = new HashMap();apiCase.put("mobile", "13120454219,1861169664
setFormHttpEntity(httpPost, apiCase);
String uri = "http://101.200.194.158:8087/sms/send_text_singlego";
		String uri = "http://101.200.194.158:8087/sms/send_text_batch";
		Map
 
   apiCase = new HashMap<>();
		apiCase.put("mobile", "13120454219,18611696649");
		apiCase.put("type", "meizhuang");
		apiCase.put("action", "text");
		apiCase.put("text", "测试");
		HttpPost httpPost = new HttpPost(uri);
		setFormHttpEntity(httpPost, apiCase);
		JSONObject response = new JSONObject();
		response = getHttpResponseEntityByJson(httpPost);
		output(response);
 
网友评论