Skip to main content
Question

at the time I'm asking the folder items, where can I get it's file's detail?

  • May 21, 2025
  • 2 replies
  • 27 views

Forum|alt.badge.img

I can't get the detail info of files when i'm asking the folder items.(

https://api.box.com/2.0/folders/FOLDER_ID/items

)The json object does'n contain the file's detail information, such as file's size. 

So, I must get the folder items first, then get the detail info for every file, it is too waste time.

like this:

if (getFolderItems()) {

    ...

     for (auto iter : folderItems) {

        getItemDetail(iter);

        ...

    }

}

tips1: i'm using c++

tips2:can i at least get file's size when i'm asking folder items?

2 replies

Forum|alt.badge.img

Use the fields parameter to request the fields that you want in the file details.

 

https://docs.box.com/reference#get-a-folders-items


Forum|alt.badge.img

Thanks!