最近公司要做一个基于新网的API,在自己的系统中实现实时查询域名注册情况,并且要能实时注册,注册费用自动从我们的代理帐户中扣除,下面是我写的核心实现类代码:
publicreadonlystaticstringAgentID="agent";
privateEncoding_WebEncode=Encoding.GetEncoding("UTF-8");
publicXinNetApiBase(ApiType_apitype,List_list)
publicXinNetApiBase(string_ApiUrl,List_list)
requestUrl =q.QueryName "=" HttpUtility.UrlEncode(q.QueryValue,this.WebEncode) "