我在各处搜索,但未能找到适当的示例,也不够熟练,无法通过文档进行排序。有比我更有知识的人能向我展示如何形成OAUTH 2的CURL命令吗?我只需要OAUTH 2密钥吗?我看到了应用程序密钥、应用程序密钥和oauth 2。如果有影响,我是在使用perl脚本。最接近的代码是这个:
但我认为那不是OAUTH 2?
curl --request PUT --header "Content-Length: `ls -la jonathan.txt | awk '{ print $5}'`" --header
"Content-Type: multipart/mixed" --data-binary "@jonathan.txt" "https://api-
content.dropbox.com/1/files_put/dropbox/jonathan.txt?access_token=ABCDEF"
但我认为那不是OAUTH 2?
curl -X POST https://content.dropboxapi.com/2/files/upload --header "Authorization: Bearer <access token>" --header "Dropbox-API-Arg: {\"path\": \"/Homework/math/Matrices.txt\",\"mode\": \"add\",\"autorename\": true,\"mute\": false}" --header "Content-Type: application/octet-stream" --data-binary @local_file.txt
- radicaledward101