How to List Shared Links in a Dropbox Business account?
I am using dropbox Business (DbxTeamClientV2 client) to get all shared links but getting an error
DbxTeamClientV2 client = new DbxTeamClientV2(config, accessToken) // The access token was generated for business account
client.asAdmin(memberId).sharing().listSharedLinks().getLinks(); // fails right here
Error in call to API function "sharing/list_shared_links": This endpoint doesn't support "HTTP header \"Dropbox-API-Select-Admin\""
Although, it works fine in dropbox Personal account (DbxClientV2 client)
DbxClientV2 client = new DbxClientV2(config, accessToken); // The access was token generated for personal account
client.sharing().listSharedLinks().getLinks(); // this works