Get User Information
Learn how to get a user's information using the Dropbox API endpoints.
We'll cover the following
In this lesson, we’ll explore some of the important endpoints of the users
account_info.read
permission. We’ll interact with the following endpoints in this lesson:
get_current_account
get_space_usage
Note: We granted permission for
account_info.read
in the previous lesson after we generated our access token.
Get current account details
The users
namespace offers the following endpoint:
/users/get_current_account
.
It’s used to retrieve a user’s information with the access token. It uses Bearer
authorization and is defined in the header of the HTTP request. It utilizes an HTTP POST
request and doesn’t take any parameters.
Let’s see this endpoint’s functionality in the code below.
Get hands-on with 1200+ tech skills courses.