I know this is a newbie issue but I cannot seem to find the right track to get over this learning curve...
I can successfully authenticate on macOS to this point:
let client = DropboxClientsManager.authorizedTeamClient
Going off examples it seems to begin an enumeration I would then want to do something like this:
client!.asMember("me").files.listFolder(path: "")
The problem I am having is where do I get the member ID for "me"? To keep things simple I would like to use the account that authorized the app. I did see this in the Dropbox community:
"If you mean the particular member that happened to authorize the app to connect to the team, you can look them up using /2/team/token/get_authenticated_admin. Note that this will vary by access token though, and isn't necessarily the current end-user of your app. It also won't necessarily be available for every access token."
Yet, using SwiftyDropbox that doesn't seem particularly helpful. (In other words, I am not sure how to get that out of the Swift SDK) The note above indicates that it might not be available for every access token. Since I have no idea when it would break, would looking it up from a known email be the better approach? Of course all of this assumes I am going down the right track to begin with.
There are two side questions to this as well. First, since this is an in-house app in a controlled space do I need to worry about member IDs changing? Or, would it be "safe" to just hard code the ID when I know what it actually is? Second, I am looking to enumerate the team space the account has access to and not their personal space. I believe I also saw references to differentiate between these roots once I have access. How should that part be handled?