Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
Hi ,
i know that dropbox made a lot of changes in the last few years.
i want to understand something
there where a time that i needed to check the account , and check if the account is team in order to identify if it is a space team(new team) or the old one.
is this the case for today as well. or that dropbox deprecated all there old teams of the old dropbox and we move only to work with the new one?
i am using the api of dropbox and i used to support the old and the new dropbox themes.
can someone help me to understand 🙂
attaching the response from rootinfo
@Omri1984 The combination of the two features allows an app to distinguish between all three team configurations. Please refer to this post for information on that. The recommendation is use these feature values to programmatically determine how to handle any particular team, as described throughout that post.
i think maybe it is related to this .
And if yes can you do me some clearance here 🙂 ?
And if no please what is the issue ?
While Dropbox is working to migrate teams to the updated team space, there are still teams on each of the different configurations.
And yes, the best resources for information on this are:
how can i request both of those featured values using the dropbox sdk with c# can share with an example of the code ?
@Omri1984 Здравко is correct; you can use those feature methods in the .NET SDK to make the feature calls for the team or user, but the team_shared_dropbox and distinct_member_home feature values for users and the has_distinct_member_homes feature values for teams haven't been implemented in .NET SDK yet.
You can determine the same information from the RootInfo object in your screenshot though:
Thank you @Здравко and thank you @Greg-DB i will give it a try.
In the past i implement changes that decided if it a new team or old by the root info.isteam
So now i have 3 options? New team old team and no team. And according to table i saw in article this is the way i need to decide if to use the team space client or the old client ??
@Omri1984 Yes, there are currently three possible team configurations. The linked resources cover how to detect all of the different feature states so apps can use the features accordingly. Note though that the 'Dropbox-API-Path-Root' header is supported by all three configurations, so you can use that to set the root when calling for any account regardless of the team configuration if you wish to do so. That can make your code a bit simpler.
ok i am working on requesting the get values from the api,
just one more thing how do i know when to call the team.getvalues or user.getvalues
for old and new team should i use the team and for personal user i need to use the user ?
also trying to fetch the get values and getting an error such as
creating client with https://api.dropboxapi.com and a Bearer token
var requestBody = "{\"features\":[{\".tag\":\"\"distinct_member_home\"},{\".tag\":\"team_shared_dropbox\"}]}";
var content = new StringContent(JsonConvert.SerializeObject(requestBody), Encoding.UTF8, "application/json");
content.Headers.ContentType = new MediaTypeHeaderValue("application/json");
var res = await httpClient.PostAsync("/2/users/features/get_values",content);
but always get the same response of:
Result: "Error in call to API function \"users/features/get_values\": request body: expected object, got string"
am i missing something here
Hi there!
If you need more help you can view your support options (expected response time for a ticket is 24 hours), or contact us on X or Facebook.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!