I'm trying to get files and folders for the user who approved my app (and now I have the token after his approval).
I was able to scan all users in the team by getting the user dbid and using it with "Dropbox-API-Select-User" header, but I want sometimes to scan only the current user (user that approved my app).
I couldn't get his dbid for now and when I try to go to "https://api.dropboxapi.com/2/users/get_current_account" without the "Dropbox-API-Select-User" header I'm getting a message that this header is missing.
Any ideas how can I get to his files/folders without the dbid, or somehow get his dbid? maybe in the Authorization process somehow? or some other APIs?
I'm using this API: https://www.dropbox.com/developers/documentation/http/documentation
my request to get current account: https://api.dropboxapi.com/2/users/get_current_account
my headers:
Content-Type:application/json
Authorization: Bearer my_token
and I'm getting this error: Error in call to API function "users/get_current_account": Missing required X-Dropbox-Perform-As-Team-Member header
Thanks.