
我找到的最接近的代码是:
curl --request PUT --header "Content-Length: `ls -la jonathan.txt | awk '{ print }'`" --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 -H "Authorization: Bearer <your token>" https://API-content.dropBox.com/1/files_put/auto/ -T <your file path>总结
以上是内存溢出为你收集整理的使用Curl和Oauth 2将DropBox API PUT上传到DropBox的示例全部内容,希望文章能够帮你解决使用Curl和Oauth 2将DropBox API PUT上传到DropBox的示例所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)