【发布时间】:2019-05-29 20:57:20
【问题描述】:
在 wordpress 应用程序中使用插件、保管箱媒体导入器。在创建具有完整保管箱权限的个人保管箱应用程序后,我添加了客户端密钥和机密,我尝试授权该请求,但它返回一个错误,指出无效client_id or secret。当我尝试使用 client_id & secret 执行 curl 请求时,我得到了相同的响应。
请求:
curl -X POST https://api.dropboxapi.com/2/auth/token/from_oauth1 \
--header "Authorization: Basic <REDACTED>" \
--header "Content-Type: application/json" \
--data "{\"oauth1_token\": \"qievr8hamyg6ndck\",\"oauth1_token_secret\": \"qomoftv0472git7\"}"
回应:
{"error_summary": "invalid_oauth1_token_info/", "error": {".tag": "invalid_oauth1_token_info"}
【问题讨论】:
标签: wordpress rest api curl dropbox