跳轉到內容

Radium 智慧鏈/智慧鏈驗證文件

來自華夏公益教科書

智慧鏈驗證允許您使用盡可能少的步驟驗證任何可下載檔案:複製、貼上、點選。本文件將涵蓋智慧鏈驗證的用法、智慧鏈驗證 API 以及智慧鏈驗證連結的應用。

要使用智慧鏈驗證,只需輸入直接下載連結。直接下載連結是指指向檔案下載的連結,不會經過重定向或任何其他中斷。
如果您忘記了連結的 http/https 字首,智慧鏈驗證將嘗試修復連結。雖然智慧鏈驗證很可能能夠修復連結,但建議您包含適當的字首,以避免任何不希望的結果。

註冊檔案

[編輯 | 編輯原始碼]

請使用以下教程在智慧鏈驗證上註冊下載。

連結/按鈕工具

[編輯 | 編輯原始碼]

如果您想向用戶提供您託管的智慧鏈驗證下載連結,您可以使用以下工具

<a href="https://www.verify.software/link?link={{ insert your download link here }}">{{ insert your download button styling here }}</a>

基本 URL

[編輯 | 編輯原始碼]

https://api.verify.software/api?url=

CURL 示例

[編輯 | 編輯原始碼]
$ curl https://api.verify.software/api?url=https://github.com/ProjectRadium/Radium/releases/download/v1.4.2.1/radiumd-1.4.2.1.exe

{"message": "檔案已由經過驗證的使用者成功驗證。", "code": 0, "data": {"username": "tm2013", "verified": true, "title": "radiumd-1.4.2.1.exe", "timestamp": 1467084970, "timestamp_utc": "2016-06-28 03:36:10", "user_verified": true, "block": 558321}, "error": false}

Python 示例

[編輯 | 編輯原始碼]
#/usr/bin/env python
# -*- coding: utf-8 -*-
import requests
data = requests.get("https://api.verify.software/api?url=https://github.com/ProjectRadium/Radium/releases/download/v1.4.2.1/radiumd-1.4.2.1.exe").content
print data

{"message": "檔案已由經過驗證的使用者成功驗證。", "code": 0, "data": {"username": "tm2013", "verified": true, "title": "radiumd-1.4.2.1.exe", "timestamp": 1467084970, "timestamp_utc": "2016-06-28 03:36:10", "user_verified": true, "block": 558321}, "error": false}

華夏公益教科書