使用 curl 檢索特定檔案的現有共享連結

curl -X POST https://api.dropboxapi.com/2/sharing/list_shared_links \
    --header "Authorization: Bearer <ACCESS_TOKEN>" \
    --header "Content-Type: application/json" \
    --data "{\"path\": \"/test.txt\", \"direct_only\": true}"

<ACCESS_TOKEN> 應替換為 OAuth 2 訪問令牌。