This uses the Dropbox Python SDK to get the user's account information from the Dropbox API.
import dropbox dbx = dropbox.Dropbox("<ACCESS_TOKEN>") dbx.users_get_current_account()
<ACCESS_TOKEN> should be replaced with the access token.
<ACCESS_TOKEN>