String url = "*******************";
//key-------这里的appkey不知道是该写什么,估计这里的问题
String appkey = "****";
//密钥
String secret = "***";
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
//DefaultAliyunClient client = new DefaultAliyunClient(url, appkey, secret);
AlibabaAliqinFcSmsNumSendRequest req = new AlibabaAliqinFcSmsNumSendRequest();
//写死的
req.setSmsType( "normal" );
//应用名
req.setSmsFreeSignName( "****" );
req.setSmsParamString( "{"name":"jjj","time":"2017-10-11","project":"语文"}" );
//手机号
req.setRecNum( "18280557280" );
//模版ID
req.setSmsTemplateCode( "****" );
AlibabaAliqinFcSmsNumSendResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
报错:2017-06-27 15:18:42,904 ERROR [topsdk] - <2017-06-27 15:18:42.900^^LTAIJQMtzli4XjHC^^alibaba.aliqin.fc.sms.num.send^^192.168.1.7^^Windows 8.1^^434^^sign_method=hmac×tamp=2017-06-27+15%3A18%3A42&sign=5BF734A99BD9D79DEC101859BE3C0F52&sms_type=normal&partner_id=top-sdk-java-20160607&v=2.0&rec_num=18280557280&sms_free_sign_name=%E6%95%99%E5%B8%88%E5%8F%91%E5%B1%95%E7%BD%91&method=alibaba.aliqin.fc.sms.num.send&app_key=LTAIJQMtzli4XjHC&sms_template_code=SMS_73485002&format=json&sms_param=%7B%22name%22%3A%22zx%22%2C%22time%22%3A%222017-10-11%22%2C%22project%22%3A%22%E8%AF%AD%E6%96%87%22%7D^_^{"error_response":{"code":11,"msg":"Insufficient isv permissions","sub_code":"isv.permission-api-package-limit","sub_msg":"scope ids is 11022 11600 11863","request_id":"3b57vz3uq3nm"}}>
{"error_response":{"code":11,"msg":"Insufficient isv permissions","sub_code":"isv.permission-api-package-limit","sub_msg":"scope ids is 11022 11600 11863","request_id":"3b57vz3uq3nm"}}
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。