📅  最后修改于: 2022-03-11 14:56:55.001000             🧑  作者: Mango
axios.get('https://api.github.com/user', {
headers: {
'Authorization': `token ${access_token}`
}
})
.then((res) => {
console.log(res.data)
})
.catch((error) => {
console.error(error)
})