使用 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 访问令牌。