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> 应该用OAuth 2访问令牌替换。