Skip to content
An WHMCS API C# Wrapper
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.vs
Properties
bin
obj
packages/Newtonsoft.Json.9.0.1
.gitignore
API.cs
AddClient.cs
Call.cs
DomainWhoIs.cs
Enums.cs
GetClientsDetails.cs
GetClientsDomains.cs
GetClientsProducts.cs
GetInvoice.cs
GetInvoices.cs
GetOrders.cs
GetTransactions.cs
Helper.cs
README.md
UpdateClientProduct.cs
ValidateLogin.cs
WHMCS API.csproj
WHMCS API.sln
_config.yml
packages.config

README.md

WHMCS API C# Wrapper

This is an library to comunicate with the WHMCS API
Currently these functions are already implemented

Donate

How to install
NuGet Packet Manager Console on VisualStudio Install-Package WHMCS_API
or
Releases project page (need to also download Newtonsoft.Json if not already included on your project)

The implemented functions are designed to be very easy to use The following code demonstrates to to implement the GetClientDetails on an ASP.net MVC app
More information on the project Wiki Getting Started

using WHMCS-API;
namespace YOUR_APP
{
    public class YOUR_CLASS
    {
        [HttpPost]
        public ActionResult ClientDetails(int clientID)
        {
            string username = "WHMCS_USERNAME";
            string password = "WHMCS_PASSWORD";
            string accessKey = "WHNMCS_ACCESS_KEY";
            string whmcsUrl = "WHMCS_USERFRONTEND_URL"; //ex: https://example.com/client
            API api = new API(username, password, accessKey, whmcsUrl);
            ViewBag.UserDetails = api.GetClientsDetails(clientID, Stats: true); //The model passed is of type GetClientsDetails
            return View();
        }
    }
}

You can still use this library to call non implemented
Read more at the project Wiki [Advanced Usage] Unsuported Actions

You can also create custom functions of already implemented functions.
Read more at the project Wiki [Advanced Usage] Supported Actions

Donate

You can’t perform that action at this time.