jQuery.ajax({
url: 'https://api.dropboxapi.com/2/users/get_current_account',
type: 'POST',
headers: {
"Authorization": "Bearer <ACCESS_TOKEN>"
},
success: function (data) {
console.log(data);
},
error: function (error) {
console.log(error);
}
})
<ACCESS_TOKEN>
should be replaced with the OAuth 2 access token.