# 重定向到最新版本的下载链接 / Redirect to the latest version download link

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /api/v1/tikhub/downloader/redirect_download:
    get:
      summary: 重定向到最新版本的下载链接 / Redirect to the latest version download link
      deprecated: false
      description: >-
        # [中文]


        ### 用途说明:


        - 该接口用于检测客户端操作系统，并重定向到相应的 GitHub Release 直链，方便用户请求后直接开始下载最新版本的文件。


        ### 参数说明:


        - 无参数。


        ### 返回结果:


        - Windows 用户：重定向到 `.exe` 下载地址。

        - Mac 用户：重定向到 `.zip` 下载地址。

        - 其他用户：重定向到 GitHub Release 页面。


        # [English]


        ### Purpose:


        - This endpoint detects the client operating system and redirects to the
        corresponding GitHub Release direct link, allowing users to start
        downloading the latest version file immediately.


        ### Parameter Description:


        - No parameters.


        ### Return Result:


        - Windows users: Redirect to `.exe` download URL.

        - Mac users: Redirect to `.zip` download URL.

        - Other users: Redirect to the GitHub Release page.
      operationId: redirect_download_api_v1_tikhub_downloader_redirect_download_get
      tags:
        - TikHub-Downloader-API
        - TikHub-Downloader-API
      parameters: []
      responses:
        '302':
          description: Successful Response
          content:
            application/json:
              schema:
                type: string
          headers: {}
          x-apifox-name: Found
      security: []
      x-apifox-folder: TikHub-Downloader-API
      x-apifox-status: released
      x-run-in-apifox: https://app.apifox.com/web/project/4705614/apis/api-274108639-run
components:
  schemas: {}
  securitySchemes:
    HTTPBearer:
      type: bearer
      description: >
        ----

        #### API Token Introduction:

        ##### Method 1: Use API Token in the Request Header (Recommended)

        - **Header**: `Authorization`

        - **Format**: `Bearer {token}`

        - **Example**: `{"Authorization": "Bearer your_token"}`

        - **Swagger UI**: Click on the `Authorize` button in the upper right
        corner of the page to enter the API token directly without the `Bearer`
        keyword.


        ##### Method 2: Use API Token in the Cookie (Not Recommended, Use Only
        When Method 1 is Unavailable)

        - **Cookie**: `Authorization`

        - **Format**: `Bearer {token}`

        - **Example**: `Authorization=Bearer your_token`


        #### Get API Token:

        1. Register and log in to your account on the TikHub website.

        2. Go to the user center, click on the API token menu, and create an API
        token.

        3. Copy and use the API token in the request header.

        4. Keep your API token confidential and use it only in the request
        header.


        ----


        #### API令牌简介:

        ##### 方法一：在请求头中使用API令牌（推荐）

        - **请求头**: `Authorization`

        - **格式**: `Bearer {token}`

        - **示例**: `{"Authorization": "Bearer your_token"}`

        - **Swagger UI**: 点击页面右上角的`Authorize`按钮，直接输入API令牌，不需要`Bearer`关键字。


        ##### 方法二：在Cookie中使用API令牌（不推荐，仅在无法使用方法一时使用）

        - **Cookie**: `Authorization`

        - **格式**: `Bearer {token}`

        - **示例**: `Authorization=Bearer your_token`


        #### 获取API令牌:

        1. 在TikHub网站注册并登录账户。

        2. 进入用户中心，点击API令牌菜单，创建API令牌。

        3. 复制并在请求头中使用API令牌。

        4. 保密您的API令牌，仅在请求头中使用。
      scheme: bearer
servers:
  - url: https://api.tikhub.io
    description: Production Environment
security: []

```
