社区客户端 API 文档中根据用户名获取用户详情:
- GET 方法:
https://hacpai.com/api/v2/user/{userName}
- 示例:https://hacpai.com/api/v2/user/88250
API 返回:
{
"msg": "",
"random": "nxCCidfUdUYwyHjUfFdIccUYwAImVLNYiSPItFuqkcPmAPjU",
"code": 0,
"data": {"user": {
"userAvatarURL96": "https://b3logfile.com/avatar/1353745196354_1584267806213.jpeg?imageView2/1/w/96/h/96/interlace/0/q/100",
"userNickname": "D",
"userAppRole": 1,
"userCardBImgURL": "https://b3logfile.com/bg/card/1353745196354_1584269332157.jpg",
"userCurrentCheckinStreak": 866,
"userAvatarURL": "https://b3logfile.com/avatar/1353745196354_1584267806213.jpeg",
"userAvatarURL256": "https://b3logfile.com/avatar/1353745196354_1584267806213.jpeg?imageView2/1/w/256/h/256/interlace/0/q/100",
"userIntro": "全职做开源,自由职业者。",
"userAvatarURL128": "https://b3logfile.com/avatar/1353745196354_1584267806213.jpeg?imageView2/1/w/128/h/128/interlace/0/q/100",
"userPointCC": "458533",
"userHomeBImgDColor": "#9BB8CA",
"userTags": "Java,golang,Linux,开源",
"userURL": "https://88250.b3log.org",
"userTagCount": 515,
"userComment2Count": 331,
"userLongestCheckinStreak": 866,
"userAvatarURL48": "https://b3logfile.com/avatar/1353745196354_1584267806213.jpeg?imageView2/1/w/48/h/48/interlace/0/q/100",
"userNo": 1,
"userCardBImgDColor": "#E4D6BB",
"userPoint": 284755,
"userCommentCount": 14832,
"userGeneralRank": 348287,
"oId": "1353745196354",
"userName": "88250",
"userHomeBImgURL": "https://b3logfile.com/bg/home/1353745196354_1584269272734.jpg",
"userArticleCount": 674,
"userAvatarURL64": "https://b3logfile.com/avatar/1353745196354_1584267806213.jpeg?imageView2/1/w/64/h/64/interlace/0/q/100",
"userRole": "adminRole"
}}
}
请问 @88250 这两字段是干啥用的:
userHomeBImgDColor
userCardBImgDColor
从值上看应该是 css 色值吧?
欢迎来到这里!
我们正在构建一个小众社区,大家在这里相互信任,以平等 • 自由 • 奔放的价值观进行分享交流。最终,希望大家能够找到与自己志同道合的伙伴,共同成长。
注册 关于