Skip to content

Latest commit

 

History

History
23 lines (19 loc) · 1.24 KB

README.md

File metadata and controls

23 lines (19 loc) · 1.24 KB

alidns

阿里云的alidns的C#版本,修复官方的一个无法获取Value值的bug

IAcsClient client = null;
string RegionId = "cn-hangzhou";//固定为"cn-hangzhou"
string AccessKeyId = keyJson.ID;//你的AccessKeyID
string AccessKeySecret = keyJson.Secret;//你的AccessKeySecret

var profile = DefaultProfile.GetProfile(RegionId, AccessKeyId, AccessKeySecret);

client = new DefaultAcsClient(profile);

DescribeDomainRecordInfoRequest request = new DescribeDomainRecordInfoRequest();//创建一个request,不同的功能用不同的request
DescribeDomainRecordInfoResponse response;//创建一个response,不同功能返回的response不同
request.RecordId = recordId;//设置request的参数,不同的功能参数不同
response = client.GetAcsResponse<DescribeDomainRecordInfoResponse>(request);

return response.Value;//返回你要的值,不同功能返回的值不同,详见API文档