Difference between revisions of "Get WHMCS Download Information"

From WHMCS Documentation

(Input Parameters)
(Response Parameters)
Line 27: Line 27:
  
 
{| class="wikitable"
 
{| class="wikitable"
style="padding: 10px" bgcolor="#F1F1F1" | Parameter
+
!  Parameter
style="padding: 10px" bgcolor="#F1F1F1" | Type
+
!  Type
style="padding: 10px" bgcolor="#F1F1F1" | Description
+
!  Description
 
|-
 
|-
style="padding: 10px" bgcolor="#FFFFFF" | <code>version</code>
+
|  <tt>version</tt>
style="padding: 10px" bgcolor="#FFFFFF" | string
+
|  string
style="padding: 10px" bgcolor="#FFFFFF" | The most recent version that matches the specified release type.
+
|  The most recent version that matches the specified release type.
 
|-
 
|-
style="padding: 10px" bgcolor="#FFFFFF" | <code>url</code>
+
|  <tt>url</tt>
style="padding: 10px" bgcolor="#FFFFFF" | string
+
|  string
style="padding: 10px" bgcolor="#FFFFFF" | The download location for the <code>.zip</code> file for that version release.
+
|  The download location for the <tt>.zip</tt> file for that version release.
 
|-
 
|-
style="padding: 10px" bgcolor="#FFFFFF" | <code>sha256Checksum</code>
+
|  <tt>sha256Checksum</tt>
style="padding: 10px" bgcolor="#FFFFFF" | string
+
|  string
style="padding: 10px" bgcolor="#FFFFFF" | The <code>.zip</code> file's SHA-256 checksum value.  
+
|  The <tt>.zip</tt> file's SHA-256 checksum value.  
 
|-
 
|-
style="padding: 10px" bgcolor="#FFFFFF" | <code>releaseNotesUrl</code>
+
|  <tt>releaseNotesUrl</tt>
style="padding: 10px" bgcolor="#FFFFFF" | string
+
|  string
style="padding: 10px" bgcolor="#FFFFFF" | The URL for the version's [[Release_Notes|release notes]].
+
|  The URL for the version's [[Release_Notes|release notes]].
 
|-
 
|-
style="padding: 10px" bgcolor="#FFFFFF" | <code>changelogUrl</code>
+
|  <tt>changelogUrl</tt>
style="padding: 10px" bgcolor="#FFFFFF" | string
+
|  string
style="padding: 10px" bgcolor="#FFFFFF" | The URL for the version's [[Changelogs|change log]].
+
|  The URL for the version's [[Changelogs|change log]].
 
|}
 
|}
  

Revision as of 15:41, 27 April 2020

Getting download information

You can use the Service API to retrieve information about WHMCS releases, including download locations, with a curl command.

For example:

curl https://api1.whmcs.com/download/latest?type=stable

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)

curl https://api1.whmcs.com/download/latest?type=stable

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"
}