Exemple #1
0
        public async Task Run()
        {
            var apiCredentials = new APICredentials(
                "ID",
                "SECRET"
                );

//            var loginCredentials = new LoginCredentials(
//                "USERNAME",
//                "PASSWORD"
//            );

            var config = new WHMCSConfig("https://www.domain.com/panel/includes/api.php", apiCredentials);
            var client = new WHMCSClient(config);

            var response = await client.GetModule <ClientModule>().Browse();

            Console.WriteLine(JsonConvert.SerializeObject(response));
        }
Exemple #2
0
 public void Init(WHMCSClient client)
 {
     Client = client;
 }