0
votes

from a quick review of their documentation, it appears that the box.com api is geared towards writing applications to allow users to log in and interact with their own box accounts.

I want a user of my website to be able to view documents that I have placed in a shared folder in my own box account. I know, this sounds like what can be done with with the box.com widget, but I'd like to be able to do this with more flexibility. i'd like to be able to change the look of it and add the ability for users to search or sort etc.

Is there a way to do this with the box api? Really the only thing I'd need to be able to make this work, is to retrieve a list of document names/details and links to these documents.

1

1 Answers

1
votes

Benino, I think that this is possible. Two things are required to view any user's Box content: an API key and an authorization token. You get the API key by creating a Box app. You then get an authorization token by going through Box's authentication workflow . Keep these values secret and safe.

Once you have those two values, then you should simply be able to call into the API and fetch your particular folder's items. You will need to know the folder's ID, which can be determined by browsing to that folder in the web browser and looking at the URL. The ID is a numeric string.

All of this assumes that your intent is to do all of the UI/styling/searching/sorting pieces yourself, per the last sentence of your question.