Skip to Content
S.EE Docs

Dropshare

用 S.EE 縮短 Dropshare 上傳連結

Dropshare for Mac 可以用自訂短網址服務縮短上傳後的連結。連接 S.EE 有兩種方式:S.EE API 簡易模式,或 YOURLS 相容 API。

另請參閱:Dropshare 自訂短網址設定指南


取得 API 金鑰

在 工具 > API 金鑰 複製您的 API 金鑰。


開啟短網址設定

  1. 開啟 Dropshare 的 Preferences,選擇 Uploads 分頁
  2. 短網址服務選擇 Custom (advanced)
  3. 依下面任一方式填寫

方式一:S.EE API 簡易模式

欄位內容
Endpointhttps://s.ee/api/v1/shorten
URL ParameterGET,參數名稱 url
Additional Parameters留空
Auth. ParameterHeader,參數名稱 Authorization,值為您的 API 金鑰
Response FormatPlaintext

簡易模式的參數都放在查詢字串中,請求成功時只回傳純文字的短網址。短網址預設建立在 s.ee 網域下;如果要使用其他網域,在 Endpoint 後加上該網域:https://s.ee/api/v1/shorten?domain=go.example.com。


方式二:YOURLS 相容 API

欄位內容
Endpointhttps://s.ee/api/v1/yourls?action=shorturl&format=json
URL ParameterGET,參數名稱 url
Additional Parameters留空
Auth. ParameterGET,參數名稱 signature,值為您的 API 金鑰
Response FormatJSON,鍵名 shorturl

如果您在 Dropshare 中已經設定過 YOURLS,只需將 Endpoint 改為 S.EE 的網址,並在 signature 中填寫 S.EE API 金鑰。這個 API 產生的短網址固定使用 s.ee 網域。

不要公開分享您的 API 金鑰。


測試

點擊 Test,Dropshare 會縮短一個範例網址,並檢查能否從回應中讀取短網址。


疑難排解

問題解決方法
401 錯誤檢查 Auth. Parameter 中的 API 金鑰
測試時讀取不到短網址檢查 Response Format:方式一選 Plaintext;方式二選 JSON、鍵名 shorturl

Dropshare 會在記錄檔中記錄每次請求收到的回應,參見 如何取得記錄檔。


相關內容

On this page