Hi,
We are in the process of adding Dropbox support to our application. Basically this is so users have an option to store attachments in Dropbox (user creates a sales order in our app and wants to attach a Word doc to it for instance). We are using the .Net Dropbox assemblies for this. I have used the dropbox console to create a an app and created an access token for it. I'm then using this code to try to connect -
DropboxClient dbx =
new DropboxClient("XXXXXX");
var result = await dbx.Users.GetCurrentAccountAsync();
var nameSpace = result.RootInfo.RootNamespaceId;
dbx = dbx.WithPathRoot(new PathRoot.Root(nameSpace));
But I get the following error when I the GetCurrentAccount call runs -
Error in call to API function "users/get_current_account":
This API function operates on a single Dropbox account,
but the OAuth 2 access token you provided is for an entire Dropbox Business team.
Since your API app key has team member file access permissions, you can operate on a team member's Dropbox by providing the "Dropbox-API-Select-User" HTTP header or "select_user" URL parameter to specify the exact user <https://www.dropbox.com/developers/documentation/http/teams>.
I have not been able to find a C# sample that works yet for this. Is there another way or what is the recommended way of doing this? I would prefer to not have each user having to authenticate each time they want to access an attachment through our application.
I have cross-posted this in the API Support forum as well in case it gets more visibility there.
Thanks