Difference between revisions of "Get WHMCS Download Information"
From WHMCS Documentation
(→Getting download information) |
|||
| Line 6: | Line 6: | ||
For example: | For example: | ||
| − | + | <div class="source-cli"> | |
| + | curl https://api1.whmcs.com/download/latest?type=stable | ||
| + | </div> | ||
=== Input Parameters === | === Input Parameters === | ||
| Line 54: | Line 56: | ||
=== Example Request (CURL) === | === Example Request (CURL) === | ||
| − | + | <div class="source-cli"> | |
| + | curl https://api1.whmcs.com/download/latest?type=stable | ||
| + | </div> | ||
=== Example Response (JSON) === | === Example Response (JSON) === | ||
| − | + | <div class="source-cli"> | |
| + | { | ||
"version": "7.9.2", | "version": "7.9.2", | ||
"url": "https://releases.whmcs.com/v2/pkgs/whmcs-7.9.2-release.1.zip", | "url": "https://releases.whmcs.com/v2/pkgs/whmcs-7.9.2-release.1.zip", | ||
| Line 64: | Line 69: | ||
"releaseNotesUrl": "https://docs.whmcs.com/Version_7.9.2_Release_Notes", | "releaseNotesUrl": "https://docs.whmcs.com/Version_7.9.2_Release_Notes", | ||
"changelogUrl": "https://docs.whmcs.com/Changelog:WHMCS_V7.9.2" | "changelogUrl": "https://docs.whmcs.com/Changelog:WHMCS_V7.9.2" | ||
| − | }</ | + | } |
| + | </div> | ||
Revision as of 12:26, 4 May 2020
Contents
Getting download information
You can use the WHMCS Service API to retrieve information about recent WHMCS releases, including download locations, with a curl command.
For example:
Input Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| type | string | The type of release information to retrieve. You can specify stable, beta, rc, preprod, or any.
The default value is stable. |
No |
Response Parameters
| Parameter | Type | Description |
|---|---|---|
| version | string | The most recent version that matches the specified release type. |
| url | string | The download location for the .zip file for that version release. |
| sha256Checksum | string | The .zip file's SHA-256 checksum value. |
| releaseNotesUrl | string | The URL for the version's release notes. |
| changelogUrl | string | The URL for the version's change log. |
Example Request (CURL)
Example Response (JSON)
{
"version": "7.9.2", "url": "https://releases.whmcs.com/v2/pkgs/whmcs-7.9.2-release.1.zip", "sha256Checksum": "f82c95a78251d4ece9065700f6a66bcc88984b59649e5713bfac07af7cac2707", "releaseNotesUrl": "https://docs.whmcs.com/Version_7.9.2_Release_Notes", "changelogUrl": "https://docs.whmcs.com/Changelog:WHMCS_V7.9.2"
}