Windows Application Initial Download URL
API Description: Based on the version number, download the corresponding version. If no version number is provided, the latest version will be downloaded by default.
When users download the application for the first time, they need to download the latest version. The request URL for this API is fixed, and if no version number is provided, it will automatically get the latest uploaded version. It can be placed in a fixed download button.
📮Request Information
Request URL
GET https://api.upgrade.toolsetlink.com/v1/win/download?winKey=isVZBUvkFhv6oHxk_X-D0Q&versionCode=1&arch=x64
Request Parameter Description
| Parameter Name | Required | Type | Example | Description |
|---|---|---|---|---|
| winKey | Yes | string | isVZBUvkFhv6oHxk_X-D0Q | Unique identifier for Windows application |
| versionCode | No | int | 1 | Application version code, default to latest if not provided |
| arch | Yes | string | x64 | Machine architecture: x64, arm64 |
📮Response Information
Success
Directly download the installation package
Typical Error Response Body
json
{
"code": 404001,
"msg": "No available version found",
"docs": "No corresponding application version found. Please confirm if it has been correctly created in the system. Please refer to the documentation: http://upgrade.toolsetlink.com/upgrade/recommend/apk/app-version.html",
"data": null
}📊Status Codes
| HTTP Status Code | code | Scenario Description | Solution |
|---|---|---|---|
| 200 | Direct file download | ||
| 400 | 400001 | Invalid request | |
| 400 | 400002 | Missing parameters | |
| 400 | 400003 | Invalid parameters | |
| 400 | 400004 | Invalid headers | |
| 400 | 400005 | Invalid request body | |
| 401 | 401001 | Authentication failed | |
| 401 | 401002 | Signature verification failed | |
| 404 | 404001 | Resource not found | |
| 404 | 404002 | Record not found | |
| 404 | 404003 | Processing method not found | |
| 404 | 404004 | Request not found | |
| 500 | 500001 | Internal server error | Please contact us Contact Us |
| 500 | 500002 | Internal server data validation failed | Please contact us Contact Us |