We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
getit
7 years agoNew member | Level 2
Access Teamfolder via API
Hello there,
currently I'am trying to get access to our Team-Folder via the API, but I have some troubles with that.. I'am using the authentication via Access-token and the connection works, but I didn't find a way to see the full team workspace. Either I only see the home folder from the user who created the access-token or I only get a "Team_shared_folder". I already tried it with the 'Dropbox-API-Select-Admin' in combination with the member_id of a Team-Admin and with 'Dropbox-API-Path-Root' in combination with different namespace_ids in Header.
e.g.:
calling ../2/team/team_folder/list
only with authentication in Header, response with
{team_folders: Array(1), cursor: "AADzUBJG4-_...", has_more: false}
cursor: "AADzUBJG4-..."
has_more: false
team_folders: Array(1)
0:
content_sync_settings: []
is_team_shared_dropbox: true
name: "Ihr Team's shared workspace"
status: {.tag: "active"}
sync_setting: {.tag: "default"}
team_folder_id: "263521..."
__proto__: Object
length: 1
__proto__: Array(0)
__proto__: Objectcalling ../2/team/team_folder/list
with authentication and 'Dropbox-API-Path-Root' => [".tag" => "namespace_id", "namespace_id" => 263521...] in Header, response with
{team_folders: Array(1), cursor: "AABKGcil8JPcyA7...", has_more: false}
cursor: "AABKGcil8JPcyA..."
has_more: false
team_folders: Array(1)
0: {team_folder_id: "2635...", name: "Ihr Team's shared workspace", status: {…}, is_team_shared_dropbox: true, sync_setting: {…}, …}
length: 1
__proto__: Array(0)
__proto__: Object
Do I have to use a OAuth2 user-auth? I'am a bit frustrated.. don't find my failure :/
EDIT: I found this Link: https://www.dropboxforum.com/t5/API-Support-Feedback/How-to-list-the-contents-of-a-team-folder/td-p/258310
And I noticed, that I have issues with ../2/files/list_folder[/continue] in combination with the 'Dropbox-API-Select-User' header,too. I tried it with the team_member_id and account_id from .../2/users/get_current_account . I get a bad request back for it.. Don't know why :/
4 Replies
Replies have been turned off for this discussion
- TomášPetrlík7 years agoExplorer | Level 4
I am also having similar problem where I can list team folders but can´t write to them because all of the content is uploaded to private folder.
- getit7 years agoNew member | Level 2
You can remove this thread :)
The problem isn't the API, but the libs I use. I tried the call with an curl tool and it worked perfect. Sorry for this. I think the lib didn't send the request content as json and produce the error.
- TomášPetrlík7 years agoExplorer | Level 4
Would you mind contacting me on <redacted by admin> ? I would like to discuss this further as I did not fixed it yet.
- Greg-DB7 years ago
Dropbox Community Moderator
getit I'm glad to hear you already sorted this out. I'll close this thread.
TomášPetrlík I'll follow up with you on the thread you opened here: https://www.dropboxforum.com/t5/API-Support-Feedback/Sharing-Add-button/m-p/329409#M19264
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If 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, Facebook or Instagram.
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!