Your workflow is unique 👨💻 - tell us how you use Dropbox here.
Forum Discussion
Josh S.3
11 years agoNew member | Level 1
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.
1 Reply
Replies have been turned off for this discussion
- Steve M.11 years ago
Dropbox Staff
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-Memberheader, which you can't do directly via the Python SDK. I'd recommend making your API calls manually via, e.g., therequestsmodule.
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!