Bu örnek bukle isteği var: Böyle httr
çevrilmesine çalıştıCurl dropbox isteği HTTR
curl -X POST https://content.dropboxapi.com/2/files/upload \
--header "Authorization: Bearer fakeaccesstoke12345" \
--header "Dropbox-API-Arg: {\"path\": \"/Homework/math/Matrices.txt\",\"mode\": \"add\"}" \
--header "Content-Type: application/octet-stream" \
--data-binary @local_file.txt
: Bu işe yaramıyor
httr::POST(
"https://content.dropboxapi.com/2/files/upload",
add_headers(Authorization = "Bearer fakeaccesstoke12345",
`Dropbox-API-Arg` = paste("{\"path\": \"/folder/", FileName, "\"mode\": \"add\"}", sep = ''),
`Content-Type` = "Content-Type: application/octet-stream"
)
)
. --data-binary
'un da ne yaptığından emin değilim. Dokümanlar bu konuda hiçbir şey söylemiyorlar, bu yüzden bu HTTP'de bazı standart parametreler olup olmadığını merak ediyorum.
Yükleme noktası için dokümanlar, gerekirse here bulunabilir.
yapar bir R paket var dropbox yüklenenler ... https://cran.r-project.org/web/packages/rdrop2/index.html – cory
ben rdrop2' 'biliyorum ama tercih ederim Mümkünse HTTP yoluna gidin. – jgozal