This method creates a new reseller from an existing template on the Parallels Pro Control Panel server.
Method |
public void AddReseller (Reseller reseller, string username, string password) |
Parameters |
|
Return Value |
none |
Note: Before running this method, the Parallels Pro Control Panel must contain a template for adding a new reseller. If a template does not exist, you must create a new template using the Parallels Pro Control Panel. For instructions on creating a new template, please refer to the online Help available in the Parallels Pro Control Panel by clicking General Help in the Help section on the left navigation panel.
Reseller res = new Reseller();
res.DisplayName = "myreseller.com";
//Reseller name has to be prefixed with "reseller."
res.Name = "reseller." + "myreseller.com";
res.ShortName = "myreseller.com";
res.TemplateName = "Gold Reseller Plan";
res.ContactPhone = "0123456789";
res.ContactEmail = "blackhole@ensim.com";
res.FullName = "Test Reseller";
res.UserName = "admin";
res.Password = "ensim123";
res.Email = "user@example1.com";
w.AddReseller(res, "admin", "ensim123");