I'm learning about Dropbox API v2, testing the commands and etc to practice.
When I tried to type the delete command (https://www.dropbox.com/developers/documentation/http/documentation#files-delete):
curl -X POST https://api.dropboxapi.com/2/files/delete \
--header 'Authorization: Bearer *****token******' \
--header 'Content-Type: application/json' \
--data '{"path":"*/Dropbox/home/douglas/uploader2*"}'
the output returns:
Error in call to API function "files/delete": request body: could not decode input as JSONcurl: (6) Could not resolve host: "path"
I think I know where I went wrong, maybe in the --data '{"path":" "},
. I think I'm putting the wrong path in this line, but I don't know exactly what I should put there, I try the path in the local machine and the path in Dropbox, but both of them don't work, and the docs of the dropbox don't make this much clear...