api_auth_profile_retrieve
GET
/api/auth/profile/
const url = 'https://example.com/api/auth/profile/';const options = {method: 'GET', headers: {Authorization: '<Authorization>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/api/auth/profile/ \ --header 'Authorization: <Authorization>'获取当前用户的完整资料信息
无响应正文