新しいBoxサポートサイトへようこそ。 変更点の詳細はこちらをご確認ください .

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

新規投稿

コメント

8件のコメント

  • 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
    コメントアクション Permalink
  • ok3141

    Did you find solution for that?

    0
    コメントアクション Permalink
  • jason_oldham

    I have not found a way to make it work, 

    0
    コメントアクション Permalink
  • 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
    コメントアクション Permalink
  • 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
    コメントアクション Permalink
  • 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
    コメントアクション Permalink
  • 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
    コメントアクション Permalink

サインインしてコメントを残してください。