We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
Esteban S.2
11 years agoNew member | Level 1
Business API with Python SDK
The current Python SDK does not appear to support the Business API; are there any good resources for app integration with the Dropbox for Business API?
Steve M.
Dropbox Staff
11 years agoHere's a little sample to help you get going. This code reads all the events for the team via the event log. (It uses the Python requests library.)
params = {}
while True:
response = requests.post('https://api.dropbox.com/1/team/log/get_events', headers={
'Authorization': 'Bearer %s' % access_token,
'Content-Type': 'application/json'
}, data=json.dumps(params)).json()
for event in response['events']:
print event # (or do something more useful)
params['cursor'] = response['cursor']
if not response['has_more']:
print 'Sleeping...'
time.sleep(10)
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!