I need retrieve only file from a GET request to Box.com.
Problem is the follow...
I have a Panel where I show the files contents in a folder.
Currently I get all the content and I keep only the elements that have type equals to "file".
Now I need to paginate the results. I use the Box API to get an offset of result, in this way:
GET https://api.box.com/2.0/folders/0/items?limit=2&offset=1
Authorization: Bearer MY_TOKEN
I ask for the fist 2 elements. But is obviously that if the first 2 elements is both folder, my panel will show zero elements.
Is there a way to make a GET request specifying the type of the elements? something like this:
GET https://api.box.com/2.0/folders/0/items?limit=2&offset=1&type=file
Authorization: Bearer MY_TOKEN
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…