Dropbox API 通过curl上传文件
示例
这会将文件从matrices.txt当前文件夹中的本地路径/Homework/math/Matrices.txt上载到Dropbox帐户中,并返回上载文件的元数据:
echo "some content here" > matrices.txt
curl -X POST https://content.dropboxapi.com/2/files/upload \
--header "Authorization: Bearer <ACCESS_TOKEN>" \
--header "Dropbox-API-Arg: {\"path\": \"/Homework/math/Matrices.txt\"}" \
--header "Content-Type: application/octet-stream" \
--data-binary @matrices.txt<ACCESS_TOKEN>应该用OAuth2访问令牌替换。
热门推荐
10 侄儿恋爱的祝福语简短
11 便利贴老师祝福语简短
12 名人写信结尾祝福语简短
13 表姐孩子满月祝福语简短
14 我的晋升祝福语简短
15 520祝福语最简短的
16 英语祝福语宝宝文案简短
17 家长对中考祝福语 简短
18 祝贺新生宝宝祝福语简短