Well I'm still at a loss.
I have the shared link to a folder that I need to check on a daily schedule to see if there's new files. The logic of which is all fine, but I just can't access anything below the initial shared link programatically.
Really all I need to get is the URL for any subfolder ... but I'll be damned if there's an API call that will supply that information.
- I have tried with the API token provided by the DB Dev Docs (auto).
- I have tried with my own token in place of that (to make the API call come from my account).
- I have tried all of the following and none can penetrate the barrier that is the second level of folders:
- get_shared_link_metadata
- get_folder_metadata
- list_received_files
- list_folder
- list_folders
I have access to the shared link, I have access to all the (3) subfolders.
One thing I note is that the URL changes once I enter the subfolder of the main shared link, and I'm unable to programattically
get that to just launch either a new get_shared_link_metadata on the new URL, or list_folder to get its contents. So if we had a primary shared link of:
https://www.dropbox.com/sh/aaa/bbb/
Let's say that has a subfolder called "john", I can't resolve that via the API because the URL to the john folder is not:
https://www.dropbox.com/sh/aaa/bbb/john
The link, instead, is:
https://www.dropbox.com/sh/aaa/ccc/john
A quick breakdown of how I would desire this to work:
Stage 1:
get_shared_link_metadata ---> list_folder
This works, and provides me with the contents of the shared folder, and the names and IDs of the subfolders.
Stage 2:
UNKNOWN ---> list_folder
This is the repeated stage (for each of the 3 subfolders), the UNKNOWN represents what I don't know, that should essentially be the equivalent of the get_shared_link_metadata ... except I don't have the right link for the subfolders, because they are changed each time.