#arymaulanaa
1 messages · Page 1 of 1 (latest)
Can you try downloading with your account secret key?
i tried to access it via get call
https://files.stripe.com/v1/files/FILE_ID
if we do that on browser, it require a user and pass
how to pass the key on get method?
Did you get to download the file via get call using secret key?
i didnt put the key yet, im confused where to put it
Can you try this?
curl https://files.stripe.com/v1/files/FILE_ID \
-u sk_xxx:
Please put : after the secret key
The colon prevents curl from asking for a password
You can refer to the doc here to download from file link: https://stripe.com/docs/file-upload#download-file-contents
More specifically,
curl https://api.stripe.com/v1/file_links \
-u sk_xxx
-d file={{FILE_ID}}