You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.
Forum Discussion
Ed F.14
6 years agoNew member | Level 2
adding team functionality to an existing dropbox app
Hello, I have an app in the app store, backpack studio, that allows access to reading and writing audio files through dropbox.... I have a user that would like me to support dropbox "teams" s...
- 6 years ago
Yes, that's right. That would use the user's folder, if they're not on a team with a team space, or the team space folder, if they are on a team with the team space. Also, note you can use initWithRoot if you do intend to access the root and want verification mentioned under the "Root" part of the "Dropbox-API-Path-Root Header Modes" section of the Namespace Guide (whereas initWithNamespaceId can be used for any particular namespace the user has access to).
Ed F.14
New member | Level 2
Thank you - so just to clarify from reading the namespace guide - would an objective c implementation that simultaniously supports users on teams and regular users not on teams work like this:
[[client.usersRoutes getCurrentAccount] setResponseBlock:^(DBUSERSFullAccount * _Nullable result, DBNilObject * _Nullable routeError, DBRequestError * _Nullable networkError) { //get the root namespace id ... will be the home folder if not on a team NSString *namespaceId = result.rootInfo.rootNamespaceId; //create a dbcommonpathroot with the namespace id DBCOMMONPathRoot *cpr = [[DBCOMMONPathRoot alloc] initWithNamespaceId:namespaceId]; // make a new client by calling client with the root object client = [client withPathRoot:cpr]; // // call to get folders etc...
Or is there a simpler way i am overlooking?
Greg-DB
6 years agoDropbox Staff
Yes, that's right. That would use the user's folder, if they're not on a team with a team space, or the team space folder, if they are on a team with the team space. Also, note you can use initWithRoot if you do intend to access the root and want verification mentioned under the "Root" part of the "Dropbox-API-Path-Root Header Modes" section of the Namespace Guide (whereas initWithNamespaceId can be used for any particular namespace the user has access to).
About Discuss Dropbox Developer & API
Make connections with other developers
797 PostsLatest Activity: 2 days agoIf you need more help you can view your support options (expected response time for an email or 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!