Skip to content
/ alidns Public

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

Notifications You must be signed in to change notification settings

lersh/alidns

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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文档

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages