标签:ram expand color scl demo ret ali yun put
DefaultProfile profile = DefaultProfile.getProfile("cn-hangzhou", "<accessKeyId>", "<accessSecret>"); IAcsClient client = new DefaultAcsClient(profile); ? CommonRequest request = new CommonRequest(); request.setMethod(MethodType.POST); request.setDomain("dysmsapi.aliyuncs.com"); request.setVersion("2017-05-25"); request.setAction("SendSms"); request.putQueryParameter("RegionId", "cn-hangzhou"); request.putQueryParameter("PhoneNumbers", "177******75"); request.putQueryParameter("SignName", "云商商城"); request.putQueryParameter("TemplateCode", "SMS_171110064"); request.putQueryParameter("TemplateParam", "{\"code\":\"6666\"}"); try { CommonResponse response = client.getCommonResponse(request); System.out.println(response.getData()); } catch (ServerException e) { e.printStackTrace(); } catch (ClientException e) { e.printStackTrace(); }
标签:ram expand color scl demo ret ali yun put
原文地址:https://www.cnblogs.com/kitor/p/11233619.html