Exemplo n.º 1
0
		public void TestAvailability()
		{
			WAPI wapi = new WAPI();
			Credential credentials = new Credential()
			{
				Account = "dontstayin",
				Password = "******"
			};

			string cltrid = Guid.NewGuid().ToString();
			string response = wapi.CheckAvailability(cltrid, credentials, new string[] { "google.com" }, null, null);
		}
Exemplo n.º 2
0
		/// <summary>
		/// Prepare a new .com domain for registration
		/// </summary>
		/// <param name="secondLevelDomain">e.g. "dontstayin" of "www.dontstayin.com"</param>
		public DotComDomain(string secondLevelDomain)
		{
			this.secondLevelDomain = secondLevelDomain.ToLower();

			if (!IsSecondLevelDomainNameValid())
			{
				throw new Exception("Invalid second-level domain: " + this.secondLevelDomain);
			}

			this.topLevelDomain = "com";

			shopper = new Shopper()
			{
				user = "******",
				pwd	= "Blind78bat"
				//user = "******",
				//pwd = "Blind78bat",
				//firstname = "David",
				//lastname = "Brophy",
				//email = "*****@*****.**",
				//phone = "+44.2078355599"
			};
			registrant = new ContactInfo()
			{
				fname = "David",
				lname = "Brophy",
				org = "Development Hell Limited",
				sa1 = "90-92 Pentonville Road",
				sa2 = "London",
				city = "London",
				sp = "London",
				pc = "N1 8HS",
				cc = "United Kingdom",
				email = "*****@*****.**",
				phone = "+44.2078355599",
			};

			credentials = new Credential()
			{
				Account = "dontstayin",
				Password = "******" // TODO: read from database
			};

			wapi = new WAPI();
		}
Exemplo n.º 3
0
 /// <remarks/>
 public void CancelAsync(string sCLTRID, Credential credential, string sType, string[] sIDArray) {
     this.CancelAsync(sCLTRID, credential, sType, sIDArray, null);
 }
Exemplo n.º 4
0
 public string CheckUser(string sCLTRID, Credential credential, string sType, string sUser, string sPwd) {
     object[] results = this.Invoke("CheckUser", new object[] {
                 sCLTRID,
                 credential,
                 sType,
                 sUser,
                 sPwd});
     return ((string)(results[0]));
 }
Exemplo n.º 5
0
 public string Poll(string sCLTRID, Credential credential, string sOp) {
     object[] results = this.Invoke("Poll", new object[] {
                 sCLTRID,
                 credential,
                 sOp});
     return ((string)(results[0]));
 }
Exemplo n.º 6
0
 /// <remarks/>
 public void ResetPasswordAsync(string sCLTRID, Credential credential, string sUser, string sPwd, string sEmail, string sPwdHint, object userState) {
     if ((this.ResetPasswordOperationCompleted == null)) {
         this.ResetPasswordOperationCompleted = new System.Threading.SendOrPostCallback(this.OnResetPasswordOperationCompleted);
     }
     this.InvokeAsync("ResetPassword", new object[] {
                 sCLTRID,
                 credential,
                 sUser,
                 sPwd,
                 sEmail,
                 sPwdHint}, this.ResetPasswordOperationCompleted, userState);
 }
Exemplo n.º 7
0
 /// <remarks/>
 public void SetShopperInfoAsync(string sCLTRID, Credential credential, string sUser, string sEmail, string sFirstName, string sLastName, string sPhone, string sFax, string sCompany, string sAddress, string sCity, string sState, string sZip, string sCountry, string sShopperPin) {
     this.SetShopperInfoAsync(sCLTRID, credential, sUser, sEmail, sFirstName, sLastName, sPhone, sFax, sCompany, sAddress, sCity, sState, sZip, sCountry, sShopperPin, null);
 }
Exemplo n.º 8
0
 /// <remarks/>
 public void UpdateDomainOwnershipAsync(string sCLTRID, Credential credential, string sResourceID, string sLosingOwner, GainingOwner gaining) {
     this.UpdateDomainOwnershipAsync(sCLTRID, credential, sResourceID, sLosingOwner, gaining, null);
 }
Exemplo n.º 9
0
 public string ResetPassword(string sCLTRID, Credential credential, string sUser, string sPwd, string sEmail, string sPwdHint) {
     object[] results = this.Invoke("ResetPassword", new object[] {
                 sCLTRID,
                 credential,
                 sUser,
                 sPwd,
                 sEmail,
                 sPwdHint});
     return ((string)(results[0]));
 }
Exemplo n.º 10
0
 /// <remarks/>
 public void OrderPrivateDomainRenewalsAsync(string sCLTRID, Credential credential, Shopper shopper, DomainRenewal[] items, ResourceRenewal[] dbpItems, string sROID) {
     this.OrderPrivateDomainRenewalsAsync(sCLTRID, credential, shopper, items, dbpItems, sROID, null);
 }
Exemplo n.º 11
0
 /// <remarks/>
 public void OrderDomainPrivacyAsync(string sCLTRID, Credential credential, Shopper shopper, DomainByProxy[] items, string sROID) {
     this.OrderDomainPrivacyAsync(sCLTRID, credential, shopper, items, sROID, null);
 }
Exemplo n.º 12
0
 public string OrderDomains(string sCLTRID, Credential credential, Shopper shopper, DomainRegistration[] items, DomainByProxy[] dbpItems, string sROID) {
     object[] results = this.Invoke("OrderDomains", new object[] {
                 sCLTRID,
                 credential,
                 shopper,
                 items,
                 dbpItems,
                 sROID});
     return ((string)(results[0]));
 }
Exemplo n.º 13
0
 /// <remarks/>
 public void OrderDomainsAsync(string sCLTRID, Credential credential, Shopper shopper, DomainRegistration[] items, DomainByProxy[] dbpItems, string sROID) {
     this.OrderDomainsAsync(sCLTRID, credential, shopper, items, dbpItems, sROID, null);
 }
Exemplo n.º 14
0
 /// <remarks/>
 public void OrderCreditsAsync(string sCLTRID, Credential credential, Shopper shopper, OrderItem[] items, string sROID) {
     this.OrderCreditsAsync(sCLTRID, credential, shopper, items, sROID, null);
 }
Exemplo n.º 15
0
 /// <remarks/>
 public void PollAsync(string sCLTRID, Credential credential, string sOp, object userState) {
     if ((this.PollOperationCompleted == null)) {
         this.PollOperationCompleted = new System.Threading.SendOrPostCallback(this.OnPollOperationCompleted);
     }
     this.InvokeAsync("Poll", new object[] {
                 sCLTRID,
                 credential,
                 sOp}, this.PollOperationCompleted, userState);
 }
Exemplo n.º 16
0
 /// <remarks/>
 public void PollAsync(string sCLTRID, Credential credential, string sOp) {
     this.PollAsync(sCLTRID, credential, sOp, null);
 }
Exemplo n.º 17
0
 /// <remarks/>
 public void CancelAsync(string sCLTRID, Credential credential, string sType, string[] sIDArray, object userState) {
     if ((this.CancelOperationCompleted == null)) {
         this.CancelOperationCompleted = new System.Threading.SendOrPostCallback(this.OnCancelOperationCompleted);
     }
     this.InvokeAsync("Cancel", new object[] {
                 sCLTRID,
                 credential,
                 sType,
                 sIDArray}, this.CancelOperationCompleted, userState);
 }
Exemplo n.º 18
0
 public string OrderResourceRenewals(string sCLTRID, Credential credential, Shopper shopper, ResourceRenewal[] items, string sROID) {
     object[] results = this.Invoke("OrderResourceRenewals", new object[] {
                 sCLTRID,
                 credential,
                 shopper,
                 items,
                 sROID});
     return ((string)(results[0]));
 }
Exemplo n.º 19
0
 public string UpdateDomainOwnership(string sCLTRID, Credential credential, string sResourceID, string sLosingOwner, GainingOwner gaining) {
     object[] results = this.Invoke("UpdateDomainOwnership", new object[] {
                 sCLTRID,
                 credential,
                 sResourceID,
                 sLosingOwner,
                 gaining});
     return ((string)(results[0]));
 }
Exemplo n.º 20
0
 /// <remarks/>
 public void OrderResourceRenewalsAsync(string sCLTRID, Credential credential, Shopper shopper, ResourceRenewal[] items, string sROID) {
     this.OrderResourceRenewalsAsync(sCLTRID, credential, shopper, items, sROID, null);
 }
Exemplo n.º 21
0
 /// <remarks/>
 public void UpdateDomainOwnershipAsync(string sCLTRID, Credential credential, string sResourceID, string sLosingOwner, GainingOwner gaining, object userState) {
     if ((this.UpdateDomainOwnershipOperationCompleted == null)) {
         this.UpdateDomainOwnershipOperationCompleted = new System.Threading.SendOrPostCallback(this.OnUpdateDomainOwnershipOperationCompleted);
     }
     this.InvokeAsync("UpdateDomainOwnership", new object[] {
                 sCLTRID,
                 credential,
                 sResourceID,
                 sLosingOwner,
                 gaining}, this.UpdateDomainOwnershipOperationCompleted, userState);
 }
Exemplo n.º 22
0
 public string OrderDomainBackOrders(string sCLTRID, Credential credential, Shopper shopper, DomainBackOrder[] items, string sROID) {
     object[] results = this.Invoke("OrderDomainBackOrders", new object[] {
                 sCLTRID,
                 credential,
                 shopper,
                 items,
                 sROID});
     return ((string)(results[0]));
 }
Exemplo n.º 23
0
 /// <remarks/>
 public void ResetPasswordAsync(string sCLTRID, Credential credential, string sUser, string sPwd, string sEmail, string sPwdHint) {
     this.ResetPasswordAsync(sCLTRID, credential, sUser, sPwd, sEmail, sPwdHint, null);
 }
Exemplo n.º 24
0
 /// <remarks/>
 public void OrderDomainBackOrdersAsync(string sCLTRID, Credential credential, Shopper shopper, DomainBackOrder[] items, string sROID) {
     this.OrderDomainBackOrdersAsync(sCLTRID, credential, shopper, items, sROID, null);
 }
Exemplo n.º 25
0
 public string SetShopperInfo(string sCLTRID, Credential credential, string sUser, string sEmail, string sFirstName, string sLastName, string sPhone, string sFax, string sCompany, string sAddress, string sCity, string sState, string sZip, string sCountry, string sShopperPin) {
     object[] results = this.Invoke("SetShopperInfo", new object[] {
                 sCLTRID,
                 credential,
                 sUser,
                 sEmail,
                 sFirstName,
                 sLastName,
                 sPhone,
                 sFax,
                 sCompany,
                 sAddress,
                 sCity,
                 sState,
                 sZip,
                 sCountry,
                 sShopperPin});
     return ((string)(results[0]));
 }
Exemplo n.º 26
0
 /// <remarks/>
 public void NameGenDBAsync(string sCLTRID, Credential credential, string sKey, int nMaxResults, bool bExcludeTaken, string sTLDs, bool bAddPrefix, bool bAddSuffix, bool bAddDashes, bool bAddRelated, bool bAdvancedSplit, bool bBaseOnTop) {
     this.NameGenDBAsync(sCLTRID, credential, sKey, nMaxResults, bExcludeTaken, sTLDs, bAddPrefix, bAddSuffix, bAddDashes, bAddRelated, bAdvancedSplit, bBaseOnTop, null);
 }
Exemplo n.º 27
0
 /// <remarks/>
 public void SetShopperInfoAsync(
             string sCLTRID, 
             Credential credential, 
             string sUser, 
             string sEmail, 
             string sFirstName, 
             string sLastName, 
             string sPhone, 
             string sFax, 
             string sCompany, 
             string sAddress, 
             string sCity, 
             string sState, 
             string sZip, 
             string sCountry, 
             string sShopperPin, 
             object userState) {
     if ((this.SetShopperInfoOperationCompleted == null)) {
         this.SetShopperInfoOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSetShopperInfoOperationCompleted);
     }
     this.InvokeAsync("SetShopperInfo", new object[] {
                 sCLTRID,
                 credential,
                 sUser,
                 sEmail,
                 sFirstName,
                 sLastName,
                 sPhone,
                 sFax,
                 sCompany,
                 sAddress,
                 sCity,
                 sState,
                 sZip,
                 sCountry,
                 sShopperPin}, this.SetShopperInfoOperationCompleted, userState);
 }
Exemplo n.º 28
0
 public string Cancel(string sCLTRID, Credential credential, string sType, string[] sIDArray) {
     object[] results = this.Invoke("Cancel", new object[] {
                 sCLTRID,
                 credential,
                 sType,
                 sIDArray});
     return ((string)(results[0]));
 }
Exemplo n.º 29
0
 /// <remarks/>
 public void OrderDomainBackOrdersAsync(string sCLTRID, Credential credential, Shopper shopper, DomainBackOrder[] items, string sROID, object userState) {
     if ((this.OrderDomainBackOrdersOperationCompleted == null)) {
         this.OrderDomainBackOrdersOperationCompleted = new System.Threading.SendOrPostCallback(this.OnOrderDomainBackOrdersOperationCompleted);
     }
     this.InvokeAsync("OrderDomainBackOrders", new object[] {
                 sCLTRID,
                 credential,
                 shopper,
                 items,
                 sROID}, this.OrderDomainBackOrdersOperationCompleted, userState);
 }
Exemplo n.º 30
0
 /// <remarks/>
 public void NameGenDBAsync(string sCLTRID, Credential credential, string sKey, int nMaxResults, bool bExcludeTaken, string sTLDs, bool bAddPrefix, bool bAddSuffix, bool bAddDashes, bool bAddRelated, bool bAdvancedSplit, bool bBaseOnTop, object userState) {
     if ((this.NameGenDBOperationCompleted == null)) {
         this.NameGenDBOperationCompleted = new System.Threading.SendOrPostCallback(this.OnNameGenDBOperationCompleted);
     }
     this.InvokeAsync("NameGenDB", new object[] {
                 sCLTRID,
                 credential,
                 sKey,
                 nMaxResults,
                 bExcludeTaken,
                 sTLDs,
                 bAddPrefix,
                 bAddSuffix,
                 bAddDashes,
                 bAddRelated,
                 bAdvancedSplit,
                 bBaseOnTop}, this.NameGenDBOperationCompleted, userState);
 }