WHMCS_API 1.0.0
dotnet add package WHMCS_API --version 1.0.0
NuGet\Install-Package WHMCS_API -Version 1.0.0
<PackageReference Include="WHMCS_API" Version="1.0.0" />
paket add WHMCS_API --version 1.0.0
#r "nuget: WHMCS_API, 1.0.0"
// Install WHMCS_API as a Cake Addin #addin nuget:?package=WHMCS_API&version=1.0.0 // Install WHMCS_API as a Cake Tool #tool nuget:?package=WHMCS_API&version=1.0.0
WHMCS API C# Wrapper
This is an library to comunicate with the WHMCS API<br/> Currently these functions are already implemented
- Add Client
- Domain WhoIs
- Get Clients Details
- Get Clients Domains
- Get Clients Products
- Get Invoice
- Get Invoices
- Get Orders
- Get Transactions
- Module Change Password
- Module Custom Command
- Validate Login
How to install<br />
NuGet Packet Manager Console on VisualStudio Install-Package WHMCS_API
<br />or<br />
<a href="https://github.com/hitmanpt/whmcs-api/releases">Releases</a> 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<br /> More information on the project Wiki <a href="https://github.com/hitmanpt/whmcs-api/wiki/Getting-Started">Getting Started</a>
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<br /> Read more at the project Wiki <a href="https://github.com/hitmanpt/whmcs-api/wiki/%5BAdvanced-Usage%5D-Unsuported-Actions">[Advanced Usage] Unsuported Actions</a>
You can also create custom functions of already implemented functions.<br /> Read more at the project Wiki <a href="https://github.com/hitmanpt/whmcs-api/wiki/%5BAdvanced-Usage%5D-Supported-Actions">[Advanced Usage] Supported Actions</a>
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp3.0 is compatible. netcoreapp3.1 was computed. |
-
.NETCoreApp 3.0
- Newtonsoft.Json (>= 12.0.3)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.