itteenager_个人页

个人头像照片 itteenager
个人头像照片
0
4
0

个人介绍

暂无个人介绍

擅长的技术

获得更多能力
通用技术能力:

暂时未有相关通用技术能力~

云产品技术能力:

暂时未有相关云产品技术能力~

阿里云技能认证

详细说明
暂无更多信息
正在加载, 请稍后...
暂无更多信息
  • 回答了问题 2019-07-17

    请问使用短信服务发短信提示如下怎么解决?

    请问到底是什么问题?public static String sendSms() throws ClientException { String result = ''; try { IClientProfile profile = DefaultProfile.getProfile('cn-hangzhou', 'XXX', 'XXX'); DefaultProfile.addEndpoint('cn-hangzhou', 'cn-hangzhou', 'Sms', 'sms.aliyuncs.com'); IAcsClient client = new DefaultAcsClient(profile); SingleSendSmsRequest request = new SingleSendSmsRequest(); request.setSignName('XXX');// 控制台创建的签名名称 request.setTemplateCode('XXX');// 控制台创建的模板CODE request.setParamString('{\'code\':\'123456\'}');// 短信模板中的变量;数字需要转换为字符串;个人用户每个变量长度必须小于15个字符。' // request.setParamString('{}'); request.setAcceptFormat(FormatType.JSON); // 格式为json request.setRecNum('XXXX');// 接收号码 SingleSendSmsResponse httpResponse = client.getAcsResponse(request); System.out.println(httpResponse); result = 'true'; } catch (ClientException e) { result = e.getErrCode(); e.printStackTrace(); } return result; }
    踩0 评论0
  • 回答了问题 2017-07-01

    请问使用短信服务发短信提示如下怎么解决?

    Re请问使用短信服务发短信提示如下怎么解决? public static String sendSms() throws ClientException {         String result = '';         try {             IClientProfile profile = DefaultProfile.getProfile('cn-hangzhou', 'XXX',                     'XXX');             DefaultProfile.addEndpoint('cn-hangzhou', 'cn-hangzhou', 'Sms', 'sms.aliyuncs.com');             IAcsClient client = new DefaultAcsClient(profile);             SingleSendSmsRequest request = new SingleSendSmsRequest();             request.setSignName('XXX');// 控制台创建的签名名称             request.setTemplateCode('XXX');// 控制台创建的模板CODE             request.setParamString('{\'code\':\'123456\'}');// 短信模板中的变量;数字需要转换为字符串;个人用户每个变量长度必须小于15个字符。'             // request.setParamString('{}');             request.setAcceptFormat(FormatType.JSON); // 格式为json             request.setRecNum('XXXX');// 接收号码             SingleSendSmsResponse httpResponse = client.getAcsResponse(request);             System.out.println(httpResponse);             result = 'true';         } catch (ClientException e) {             result = e.getErrCode();             e.printStackTrace();         }         return result;     }
    踩0 评论0
  • 提交了问题 2017-07-01

    请问使用短信服务发短信提示如下怎么解决?

  • 提交了问题 2017-07-01

    请问使用短信服务发短信提示如下怎么解决?

正在加载, 请稍后...
滑动查看更多
正在加载, 请稍后...
暂无更多信息