Yes, there was an authorisation problem, I have to include :with-credentials?
false. Additionally the "Content-Type" has to be specified in the headers.
The following call works now:
(go (let [response (https://content.dropboxapi.com/2/files/download";
{:with-cre
Have you checked JS console in your browser, does is show any errors?
Br,
Immo
ti 26. kesäk. 2018 klo 13.36 Johannes kirjoitti:
> Thanks Immo, what a silly mistake!
>
> But after having corrected it, I get the same result as before:
>
> (go (let [response ( https://content.dropboxapi.com/2/file
Thanks Immo, what a silly mistake!
But after having corrected it, I get the same result as before:
(go (let [response (https://content.dropboxapi.com/2/files/download";
{:headers {"authorization" "Bearer
QfCCK..."
"Dr
You have slash instead of dot after "content" in the url: "
https://content/dropboxapi.com/2/files/download";
Br,
Immo
ti 26. kesäk. 2018 klo 10.38 Thomas kirjoitti:
> I have no idea what could be wrong here... sorry.
>
> Thomas
>
> On Monday, 25 June 2018 14:38:12 UTC+2, Johannes wrote:
>
>>
I have no idea what could be wrong here... sorry.
Thomas
On Monday, 25 June 2018 14:38:12 UTC+2, Johannes wrote:
>
> Hi,
>
> I am trying to download a file from Dropbox which I can get with the Http
> request:
>
> POST /2/files/download Host: https://content.dropboxapi.com User-Agent:
> api-exp
That's the result:
curl -vX POST https://content.dropboxapi.com/2/files/download --header
'Authorization: Bearer QfCCK...' --header 'Dropbox-API-Arg:
{"path":"/log.txt"}'>x.txt
% Total% Received % Xferd Average Speed TimeTime Time
Current
try and do a curl -v and see what it really does under the covers as there
might be a redirect
Good luck,
Thomas
On Monday, 25 June 2018 14:38:12 UTC+2, Johannes wrote:
>
> Hi,
>
> I am trying to download a file from Dropbox which I can get with the Http
> request:
>
> POST /2/files/download Ho
Hi,
I am trying to download a file from Dropbox which I can get with the Http
request:
POST /2/files/download Host: https://content.dropboxapi.com User-Agent:
api-explorer-client Authorization: Bearer QfCCK... Dropbox-API-Arg:
{"path":"/log.txt"}
or the curl request looks like that:
curl -X