使用 API 前,必需先核發用於驗證的 token。以下說明如何核發與刪除 token。
API 說明文件請點此。
核發 API token
Image Not Showing
Possible Reasons
- The image was uploaded to a note which you don't have access to
- The note which the image was originally uploaded to has been deleted
Learn More →
- 我的帳戶 > 設定。
- 設定 > API,在這個頁面可以看到 API 目前的使用情況。請按「建立 API Token」。
- 請賦予 token 一個名字,建議要能識別其用途。輸入完請按「建立」。
Image Not Showing
Possible Reasons
- The image was uploaded to a note which you don't have access to
- The note which the image was originally uploaded to has been deleted
Learn More →
- 請按「複製 Token」將 token 複製到剪貼簿,也可以手動複製。請留意:關閉本視窗後就無法再看到這個 token 的明碼,請妥善保存。
Image Not Showing
Possible Reasons
- The image was uploaded to a note which you don't have access to
- The note which the image was originally uploaded to has been deleted
Learn More →
- 按「返回」。
刪除 API token
請按欲刪除的 token 後的垃圾桶圖示,即可刪除。
Image Not Showing
Possible Reasons
- The image was uploaded to a note which you don't have access to
- The note which the image was originally uploaded to has been deleted
Learn More →
限制
免費版方案每月最多 2000 次呼叫;每五分鐘最多 100 次呼叫。
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
升級 Prime 方案來獲取每個月 10,000 次呼叫;每五分鐘最多 100 次呼叫。
API beta 測試中
HackMD API 目前在 beta 測試中,這些限制可能會更改。更改時我們不會另行告知,但你可以從【API 設定頁面】看到目前的使用情況。