Level up your Box knowledge with brand new learning paths on Box University. Visit training.box.com to get started

Help! How do you use cURL to download a file with a password?

Nouvelle publication

Commentaires

8 commentaires

  • jason_oldham

    If cURL is not the best method, I am open to other options.

     

    I just need a way to use Terminal on a Mac to download a file on Box that has a password. 

    0
    Actions pour les commentaires Permalien
  • ok3141

    Did you find solution for that?

    0
    Actions pour les commentaires Permalien
  • jason_oldham

    I have not found a way to make it work, 

    0
    Actions pour les commentaires Permalien
  • JohannesMaria

    Hi Jason,

     

    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:

     

    https://developer.box.com/v2.0/reference#get-a-shared-item

     

    Let me know if this worked for you.

     

    Thanks

     

    Johannes

    0
    Actions pour les commentaires Permalien
  • tommycarstensen

    I get this error message:

     

        `{"type":"error","status":404,"code":"not_found","help_url":"http:\/\/developers.box.com\/docs\/#errors","message":"Not Found","request_id":"qdmntzfq332zubej"}`

     

    Has anyone ever successfully downloaded a file from box? How did you do it? Thanks!

    0
    Actions pour les commentaires Permalien
  • pugilist4TBI

    How do you get that token without manually firing up a browser and logging into box? I'd like to be able to automate the whole thing.

    0
    Actions pour les commentaires Permalien
  • balter

    You need to create an auth token using the developer panel.

     

    https://app.box.com/developers/console

     

    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.

    0
    Actions pour les commentaires Permalien

Vous devez vous connecter pour laisser un commentaire.