I need to get only the file from the GET request on Box.com.
The problem is this ... I have a panel where I show the contents of files in a folder.
Currently, I get all the content, and I only save elements that are of type equal to "file".
Now I need to paginate the results. I use the Box API to get the offset of the result this way:
GET https://api.box.com/2.0/folders/0/items?limit=2&offset=1
Authorization: Bearer MY_TOKEN
I ask for a fist of 2 elements. But it is obvious that if the first 2 items are folders, my panel will show null items.
Is there a way to make a GET request specifying the type of elements? something like that:
GET https://api.box.com/2.0/folders/0/items?limit=2&offset=1&type=file
Authorization: Bearer MY_TOKEN
source
share