I am trying to generate a temporary link from test file with curl command, but this doesn't work and return this following error:
curl: (92) HTTP/2 stream 1 was not closed cleanly before end of the underlying stream
My Curl Request:
curl -X POST https://api.dropboxapi.com/2/files/get_temporary_link \
--header "Authorization: Bearer <get access token>
" \
--header "Content-Type: application/json" \
--data "{\"path\":\"/test/txt.txt\"}"
I am putting the Access Token recently generated in "<get access token>" and I have created the folder and uploaded the file in following path of Dropbox:
https://www.dropbox.com/s/x2k3bzxeud3h06g/txt.txt?dl=0
I don't understand why this isn't working.
I would like to be helped.