We Want to Hear From You! What Do You Want to See on the Community? Tell us here!

Forum Discussion

jefersoncarlos's avatar
jefersoncarlos
New member | Level 2
6 years ago

Download Arquivos

Olá, estou tentando fazer o download via api /2/files/download de um arquivo, mas acredito que estou fazendo tudo certo e o download não é feito. 

 

Dim xmlhttp As New MSXML2.ServerXMLHTTP60
Dim myURL As String
dim argumentString as string

myURL = "https://content.dropboxapi.com/2/files/download"

argumentString = "{ " & Chr(34) & "path" & Chr(34) & ": " & Chr(34) & "/home/UpdateMalala/fat.pdf" & Chr(34) & " }"

xmlhttp.Open "POST", myURL, False
xmlhttp.SetRequestHeader "Authorization", "Bearer my toh=ken"
xmlhttp.SetRequestHeader "Dropbox-API-Arg", argumentString

xmlhttp.send

Mas ocorre o erro abaixo:
{"error_summary": "path/not_found/", "error": {".tag": "path", "path": {".tag": "not_found"}}}

About Faça uma pergunta

Node avatar for Faça uma pergunta
Encontre respostas nas conversas iniciadas por outros usuários. Se não encontrar o que está procurando, faça uma pergunta.

Need More Support

The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.

If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.

For more info on available support options for your Dropbox plan, see this article.

If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!