How to get children only folder type by python apiMay 24, 2021 at 7:28am (Edited 8 months ago)
I find how to get assets's children.
I also read frameio developer docs.
I run this code.
But I got all folder & files.
I want only folders.
Or search by name. Like this.
How to use 'get_children' function kwargs?
June 8, 2021 at 1:03am
It is not possible using our API to just return files vs folders using the endpoint:
?include=cover_assetis only additive, and does not allow you to specify which you'd like returned.
get_children()was actually a mistake on my part and should not have been there, and will not do anything right now. I am however fixing this as we speak and will make sure to let you know when this is fixed! Thank you for bringing this to our attention :).
If you want to search using our API, you need to use our search endpoint, which is documented here - https://developer.frame.io/docs/workflows-assets/search-for-assets. We don't currently have Search in the Python SDK, in part because constructing those queries is pretty messy, however I have started working on adding it.