Hi. (I am using translation tool.)
I think the following method can be used to determine the folder type (team member folder, team folder, shared folder), is this correct?
I think it can be determined in the following order:
----------
Step.1: Use "files/get_metadata" endpoint to get the metadata to determine the folder type.
If the "shared_folder_id" in the metadata that obtained by Step.1 is null. and
If the "parent_shared_folder_id" in the metadata that obtained by Step.1 is null, or the same as the root namespace ID.
→ Step.2: Determine that the folder type is "team member folder".
If the "shared_folder_id" in the metadata that obtained by Step.1 is null. and
If the "parent_shared_folder_id" in the metadata that obtained by Step.1 has a value that is not the root namespace ID.
→ Step.2: Call the "sharing/get_folder_metadata" endpoint with that information as an argument.
→ Step.3: Determine whether it is a team folder or a shared folder using "is_team_folder" in the result of Step.2.
If the "shared_folder_id" in the metadata that obtained by Step.1 has a value. (is not null)
→ Step.2: Call the "sharing/get_folder_metadata" endpoint with that information as an argument.
→ Step.3: Determine whether it is a team folder or a shared folder using "is_team_folder" in the result of Step.2.
----------
Thask!