我回复一个最后能用的狐表代码
引用dll文件后,
Dim product As String = "Dysmsapi"
Dim domain As String = "dysmsapi.aliyuncs.com"
Dim accessId As String = "xxx"'替换成你的
Dim accessSecret As String = "xxx"'替换成你的
Dim regionIdForPop As String = "cn-hangzhou"
Dim profile As Aliyun.Acs.Core.Profile.IClientProfile = Aliyun.Acs.Core.Profile.DefaultProfile.GetProfile(regionIdForPop, accessId, accessSecret)
Aliyun.Acs.Core.Profile.DefaultProfile.AddEndpoint(regionIdForPop, regionIdForPop, product, domain)
Dim acsClient As Aliyun.Acs.Core.IAcsClient = New Aliyun.Acs.Core.DefaultAcsClient(profile)
Dim request As Aliyun.Acs.Dysmsapi.Model.V20170525.SendSmsRequest = New Aliyun.Acs.Dysmsapi.Model.V20170525.SendSmsRequest()
Dim response As Aliyun.Acs.Dysmsapi.Model.V20170525.SendSmsResponse = Nothing
Try
request.Ph
request.SignName = "小桃儿网游"
request.TemplateCode = "SMS_135796093"
request.TemplateParam = "{""customer"":""123""}"
request.OutId = "123"
response = acsClient.GetAcsResponse(request)
output.show(response.Message)
Catch ex As Exception
output.show("error")
End Try
[此贴子已经被作者于2018/5/25 14:21:11编辑过]