Please list all Box File URLs, their availability and functionality

New post

Comments

1 comment

  • jcleblanc

    Hi ,

     

    Let me see if I can answer your questions here:

     

    • A) To create a shared link for a file you'll want to call the Create Shared Link endpoint. That will return you a valid shared link.
    • Ai) It can be either. Setting the unshare_at value will allow you to have a shared link that expires after a certain amount of time.
    • Aii) Yes, depending on your access level you may not have the ability to download files. Here's a handy list that shows the access rights for different collaborator settings. The admin can also automatically apply settings to shared links, such as expiration time and notification settings.
    • B / Bi) For different types of previews (e.g. image / PDF / etc) I'd recommend looking at the Representation endpoints. I believe that will give you what you're looking for.
    • Bii) When setting up your application within the developer console you'll be able to set CORS domains at the bottom of the configuration section of the app. That should solve that issue.
    • C) Another option is to use the download file endpoint to download file content. That will probably be an easier method directly in your application.
    • Ci) Yes, we have our events listed here. There are events for ITEM_SHARED, ITEM_SHARED_CREATE, and ITEM_SHARED_UNSHARE.
    • Cii / Ciii) See A) for this one - you can create shared links with that endpoint.
    • Di) Just the expiration times that you or the admin set.
    • Dii) I'd recommend the ones that I mentioned in the previous sections (create shared link, representations, and download file)

    Hope that helps,

    Jon

    0
    Comment actions Permalink

Please sign in to leave a comment.