Simple Asynchronous WHMCS client for .NET
Current Stable Published Version:
Current Development Build Status:
Current Development Published Version:
Install-Package BetterCorp.Tools.WHMCS
var clientsApi = new BetterCorp.Tools.WHMCS.Clients();
this can be done directly on the Api call as parameters but its more effective to use the ApiConnectionInfo class so that it can be passed into multiple Apis being used in the same class/app
var apiConnectionInfo = new ApiConnectionInfo()
{
Hostname = "http://whmcs/",
Username = "superUser",
Password = "SuperUsers SuperSecret P@ssword"
};
clientsApi.SetConnection(apiConnectionInfo);
var clients = await clientsApi.GetClients();
clients.clients.client.ForEach((Client client) =>
{
Console.WriteLine($"{client.firstname} {client.lastname}");
});