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

Josh S.3's avatar
Josh S.3
New member | Level 1
10 years ago

python sdk and app for business/teams

I am following the tutorial on using the python sdk and when it comes to calling account_info() it fails with a 401 error. My app is a business app as I am writing something to performs some automation for our team members. Dropbox says that the app is authorized. When I make this call 'access_token, user_id = auth_flow.finish(auth_code)', I get an access token but the user_id is null.

I suspect that this may be because the python sdk doesnt work for business apps, can anybody confirm or deny?

Thanks for any help.

  • It's true that the Python SDK doesn't have anything specific in it for the Dropbox for Business API.

    If you're making calls on behalf of a team member, you need to attach the X-Dropbox-Perform-As-Team-Member header, which you can't do directly via the Python SDK. I'd recommend making your API calls manually via, e.g., the requests module.

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

5,910 PostsLatest Activity: 3 days ago
333 Following

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 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!