Help! How do you use cURL to download a file with a password?
I have a file that I have shared as "People with the link" and have set a password for the share. I am trying to figure out how to use the cURL command to download that file.
I can use cURL to download fine as long as I dont have a password on it.
Thanks for the help.
there is a get shared item call which lets you specify the password:
curl https://api.box.com/2.0/shared_items?fields=type,id -H "Authorization: Bearer ACCESS_TOKEN" -H "BoxApi: shared_link=SHARED_LINK_URL&shared_link_password=PASSWORD"
You can find the full documentation here:
Let me know if this worked for you.
There is a solution here:
You need to create an auth token using the developer panel.
You should be able to find that link lower left when you are logged into your box account.
I'm just figuring this out myself, and have not yet succeeded at using the API.
Please sign in to leave a comment.