From 56556213f7903d1574d9e8b49774697b8a180623 Mon Sep 17 00:00:00 2001
From: Kamisato-Ayaka-233 <2627706725@qq.com>
Date: Sat, 20 May 2023 15:50:19 +0800
Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=B8=80=E4=BA=9B=E7=94=A8?=
=?UTF-8?q?=E6=88=B7=E4=BF=A1=E6=81=AFAPI?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
hoyolab/article/article.md | 100 ++++----
hoyolab/forum/info.md | 2 +-
hoyolab/user/game_account_info.md | 7 +-
hoyolab/user/info.md | 371 +++++++++++++++++++++++++++++-
4 files changed, 430 insertions(+), 50 deletions(-)
diff --git a/hoyolab/article/article.md b/hoyolab/article/article.md
index 5866c5e..e9f2b56 100644
--- a/hoyolab/article/article.md
+++ b/hoyolab/article/article.md
@@ -6,7 +6,7 @@
---
-# 获取首页信息
+## 获取首页信息
_请求方式:GET_
@@ -482,7 +482,7 @@ _请求方式:GET_
| 字段 | 类型 | 内容 | 备注 |
| --- | ---- | ---- | ---- |
-| retcode | num | 返回码
1001 未指定类型
1002 未指定唯一游戏 | |
+| retcode | num | 返回码
1001 参数`type`不正确
1002 参数`gids`不正确 | |
| message | str | 返回消息 | |
| data | obj | 资讯信息 | |
@@ -496,9 +496,8 @@ _请求方式:GET_
`data`对象→`list`数组→对象:
-
@@ -513,36 +512,38 @@ _请求方式:GET_
{
"post": {
"game_id": 2,
- "post_id": "35274951",
+ "post_id": "39530410",
"f_forum_id": 28,
- "uid": "75276539",
- "subject": "「星彩漫天」——《原神》烟花卡片分享H5正式上线",
- "content": "[图片]旅行者,你喜欢收集卡片吗?派蒙发现了一个好玩的东西! 「星彩漫天」——《原神》烟花卡片分享H5正式上线。 >>点击前往「星彩漫天」网页活动<<〓活动时间〓卡片收集时间:2023年",
+ "uid": "384454482",
+ "subject": "「原神赛事解说主持招募」计划启动",
+ "content": "▌「原神赛事解说主持招募」计划启动亲爱的旅行者,请查收这份招募指南!即日起至5月28日,原神赛事将开启首批解说主持招募报名如果你正在寻找演艺的契机,不如一起开启一段崭新的冒险吧!★ 期待",
"cover": "",
"view_type": 1,
- "created_at": 1675569607,
+ "created_at": 1684555284,
"images": [
- "https://upload-bbs.miyoushe.com/upload/2023/02/03/75276539/16038508c15654652a84a93886d9dec2_8099982150962629647.jpg"
+ "https://upload-bbs.miyoushe.com/upload/2023/05/20/384454482/316ebd6113fd3923768a73e4d097a296_7231734090118733998.jpg"
],
"post_status": {
"is_top": false,
"is_good": false,
"is_official": true
},
- "topic_ids": [],
+ "topic_ids": [
+ 1264
+ ],
"view_status": 1,
- "max_floor": 3426,
+ "max_floor": 38,
"is_original": 0,
"republish_authorization": 0,
- "reply_time": "2023-02-05 15:19:16",
+ "reply_time": "2023-05-20 15:40:55",
"is_deleted": 0,
"is_interactive": false,
- "structured_content": "[{\"insert\":\"\\n\"},{\"insert\":{\"image\":\"122952038\"}},{\"insert\":\"旅行者,你喜欢收集卡片吗?派蒙发现了一个好玩的东西! \",\"attributes\":{\"color\":\"#000000\"}},{\"insert\":\"\\n\\n\"},{\"insert\":\"「星彩漫天」——《原神》烟花卡片分享H5正式上线。 \",\"attributes\":{\"color\":\"#000000\"}},{\"insert\":\"\\n\"},{\"insert\":\"\\u003e\\u003e点击前往「\",\"attributes\":{\"link\":\"https://webstatic.mihoyo.com/ys/event/e20230205-firework-xm7wly/index.html?game_biz=hk4e_cn\\u0026mhy_presentation_style=fullscreen\\u0026mhy_auth_required=true\\u0026mhy_hide_status_bar=true\\u0026channel=mys\\u00260205\"}},{\"insert\":\"星彩漫天\",\"attributes\":{\"link\":\"https://webstatic.mihoyo.com/ys/event/e20230205-firework-xm7wly/index.html?game_biz=hk4e_cn\\u0026mhy_presentation_style=fullscreen\\u0026mhy_auth_required=true\\u0026mhy_hide_status_bar=true\\u0026channel=mys\\u00260205\"}},{\"insert\":\"」网页活动\\u003c\\u003c\",\"attributes\":{\"link\":\"https://webstatic.mihoyo.com/ys/event/e20230205-firework-xm7wly/index.html?game_biz=hk4e_cn\\u0026mhy_presentation_style=fullscreen\\u0026mhy_auth_required=true\\u0026mhy_hide_status_bar=true\\u0026channel=mys\\u00260205\"}},{\"insert\":\"\\n\\n\",\"attributes\":{\"align\":\"center\"}},{\"insert\":\"〓活动时间〓\",\"attributes\":{\"bold\":true,\"color\":\"#000000\"}},{\"insert\":\"\\n\"},{\"insert\":\"卡片收集时间:2023年2月5日12:00:00-2023月2月11日23:59:59\",\"attributes\":{\"color\":\"#000000\"}},{\"insert\":\"\\n\"},{\"insert\":\"最终抽奖时间:2023年2月13日12:00:00\",\"attributes\":{\"color\":\"#000000\"}},{\"insert\":\"\\n\"},{\"insert\":\"奖励领取窗口:2023年2月5日12:00:00-2023月2月18日23:59:59\",\"attributes\":{\"color\":\"#000000\"}},{\"insert\":\"\\n\\n\"},{\"insert\":\"〓参与条件〓\",\"attributes\":{\"bold\":true,\"color\":\"#000000\"}},{\"insert\":\"\\n\"},{\"insert\":\" 冒险等阶≥10级 \",\"attributes\":{\"color\":\"#000000\"}},{\"insert\":\"\\n\\n\"},{\"insert\":\"〓活动简介〓 \",\"attributes\":{\"bold\":true,\"color\":\"#000000\"}},{\"insert\":\"\\n\"},{\"insert\":\"活动期间,旅行者可以收集和交换烟花卡片,在拥有的烟花卡片种类达到一定条件后即可解锁抽奖功能,参与抽奖赢取实物或游戏内奖励。 \",\"attributes\":{\"color\":\"#000000\"}},{\"insert\":\"\\n\\n\"},{\"insert\":\"〓活动玩法说明〓\",\"attributes\":{\"bold\":true,\"color\":\"#000000\"}},{\"insert\":\"\\n\"},{\"insert\":\"1、活动期间,旅行者可以收集烟花卡片并放入背包,完成每日任务可以获得额外收集次数。 \",\"attributes\":{\"color\":\"#000000\"}},{\"insert\":\"\\n\"},{\"insert\":\"2、旅行者也可以通过烟花交换,将已拥有的卡片与好友换得尚未拥有的烟花卡片。 烟花交换将不会消耗已拥有的烟花卡片。\",\"attributes\":{\"color\":\"#000000\"}},{\"insert\":\"\\n\"},{\"insert\":\"3、烟花卡片类型共十一张。每次收集可获得随机一张卡片。 \",\"attributes\":{\"color\":\"#000000\"}},{\"insert\":\"\\n\"},{\"insert\":\"4、当旅行者拥有所有烟花卡片时,即可解锁抽奖资格,参与烟花抽奖,赢取更多实物奖励。 \",\"attributes\":{\"color\":\"#000000\"}},{\"insert\":\"\\n\\n\"},{\"insert\":\"〓游戏奖励〓 \",\"attributes\":{\"bold\":true,\"color\":\"#000000\"}},{\"insert\":\"\\n\"},{\"insert\":\"收集全部十一张卡牌后,即可领取原石等游戏奖励。 除参与烟花抽奖时抽取到的奖励之外,所有参与烟花抽奖的旅行者都将得到摩拉、精锻用魔矿等额外游戏奖励。\",\"attributes\":{\"color\":\"#000000\"}},{\"insert\":\"\\n\\n\"},{\"insert\":\"〓活动注意事项〓\",\"attributes\":{\"bold\":true,\"color\":\"#000000\"}},{\"insert\":\"\\n\"},{\"insert\":\"1、请各位旅行者登录米哈游通行证并绑定《原神》中的游戏角色参与活动,以保证活动奖励的正常发放与领取。 \",\"attributes\":{\"color\":\"#000000\"}},{\"insert\":\"\\n\"},{\"insert\":\"2、本次活动奖励不默认发放,请旅行者及时领取。 \",\"attributes\":{\"color\":\"#000000\"}},{\"insert\":\"\\n\"},{\"insert\":\"3、在确认发奖资格并确认领取后,奖励将通过游戏内邮件发放,邮件有效期为30天,请注意查收。\",\"attributes\":{\"color\":\"#000000\"}},{\"insert\":\"\\n\"}]",
+ "structured_content": "[{\"insert\":\"▌「原神赛事解说主持招募」计划启动\\n\\n亲爱的旅行者,请查收这份招募指南!\\n\\n即日起至5月28日,原神赛事将开启首批解说主持招募报名\\n如果你正在寻找演艺的契机,不如一起开启一段崭新的冒险吧!\\n\\n★ 期待看见在舞台上闪耀的大家!\\n\"},{\"insert\":{\"image\":\"136156250\"}},{\"insert\":\"\\n\\n\"}]",
"structured_content_rows": [],
"review_id": 0,
"is_profit": false,
"is_in_profit": false,
- "updated_at": 1675581556,
+ "updated_at": 1684568455,
"deleted_at": 0,
"pre_pub_status": 0,
"cate_id": 0,
@@ -551,7 +552,9 @@ _请求方式:GET_
"meta_content": "",
"is_missing": false,
"block_reply_img": 1,
- "is_showing_missing": false
+ "is_showing_missing": false,
+ "block_latest_reply_time": 0,
+ "selected_comment": 0
},
"forum": {
"id": 28,
@@ -560,24 +563,35 @@ _请求方式:GET_
"game_id": 2,
"forum_cate": null
},
- "topics": [],
+ "topics": [
+ {
+ "id": 1264,
+ "name": "七圣召唤",
+ "cover": "https://upload-bbs.miyoushe.com/upload/2022/11/25/fbab7b47dce9d09cb1f06557531ac9a1_1617410903526086645.jpg",
+ "is_top": false,
+ "is_good": false,
+ "is_interactive": false,
+ "game_id": 0,
+ "content_type": 2
+ }
+ ],
"user": {
- "uid": "75276539",
- "nickname": "原神",
+ "uid": "384454482",
+ "nickname": "原神赛事",
"introduce": "",
- "avatar": "10011",
+ "avatar": "101070",
"gender": 0,
"certification": {
"type": 1,
- "label": "原神官方账号"
+ "label": "原神赛事官方账号"
},
"level_exp": {
- "level": 16,
- "exp": 107659
+ "level": 3,
+ "exp": 172
},
"is_following": false,
"is_followed": false,
- "avatar_url": "https://img-static.mihoyo.com/avatar/avatar10011.png",
+ "avatar_url": "https://bbs-static.miyoushe.com/static/2023/05/12/b85ea3822de881e64920ffdf3d8aed77_1765242819614536153.png",
"pendant": ""
},
"self_operation": {
@@ -585,11 +599,11 @@ _请求方式:GET_
"is_collected": false
},
"stat": {
- "view_num": 437607,
- "reply_num": 5298,
- "like_num": 73584,
- "bookmark_num": 1380,
- "forward_num": 654
+ "view_num": 2524,
+ "reply_num": 54,
+ "like_num": 439,
+ "bookmark_num": 7,
+ "forward_num": 5
},
"help_sys": {
"top_up": null,
@@ -599,16 +613,17 @@ _请求方式:GET_
"cover": null,
"image_list": [
{
- "url": "https://upload-bbs.miyoushe.com/upload/2023/02/03/75276539/16038508c15654652a84a93886d9dec2_8099982150962629647.jpg",
- "height": 320,
- "width": 690,
+ "url": "https://upload-bbs.miyoushe.com/upload/2023/05/20/384454482/316ebd6113fd3923768a73e4d097a296_7231734090118733998.jpg",
+ "height": 2817,
+ "width": 1000,
"format": "jpg",
- "size": "249835",
+ "size": "1294054",
"crop": null,
"is_user_set_cover": false,
- "image_id": "122952038",
+ "image_id": "136156250",
"entity_type": "IMG_ENTITY_POST",
- "entity_id": "35274951"
+ "entity_id": "39530410",
+ "is_deleted": false
}
],
"is_official_master": false,
@@ -623,12 +638,11 @@ _请求方式:GET_
"forum_rank_info": null,
"link_card_list": [],
"news_meta": {
- "activity_status": 1,
- "start_at_sec": "1675569600",
- "end_at_sec": "1676131140"
+ "activity_status": 0,
+ "start_at_sec": "0",
+ "end_at_sec": "0"
}
- },
- ...
+ }
],
"last_id": 1,
"is_last": false
@@ -642,17 +656,13 @@ _请求方式:GET_
_请求方式:GET_
-鉴权方式:
-头部:`x-rpc-app_version`、`x-rpc-client_type`、`x-rpc-`
-
`https://bbs-api.miyoushe.com/post/wapi/getPostFull`
**参数:**
| 字段 | 类型 | 内容 | 备注 |
| --- | ---- | ---- | ---- |
-| gids | num | 游戏ID | |
-|
+
**JSON返回:**
diff --git a/hoyolab/forum/info.md b/hoyolab/forum/info.md
index 20c3be1..114fb7d 100644
--- a/hoyolab/forum/info.md
+++ b/hoyolab/forum/info.md
@@ -22,7 +22,7 @@ _请求方式:GET_
| 字段 | 类型 | 内容 | 备注 |
| --- | ---- | ---- | ---- |
-| retcode | num | 0 成功 | |
+| retcode | num | 返回码 | |
| message | str | 返回消息 | |
| data | obj | 论坛分区数据 | |
diff --git a/hoyolab/user/game_account_info.md b/hoyolab/user/game_account_info.md
index d37d934..c68569f 100644
--- a/hoyolab/user/game_account_info.md
+++ b/hoyolab/user/game_account_info.md
@@ -1795,7 +1795,7 @@ _请求方式:GET_
| 字段 | 类型 | 内容 | 备注 |
| ---- | ---- | ---- | ---- |
| authkey_ver | num | 1 | |
-| authkey | str | 验证密钥,用于标识游戏账号 | 打开“游戏安装目录/GenshinImpact_Data(或YuanShen_Data)/webCaches/Cache/Cache_Data/data_2”,寻找类似“ |
+| authkey | str | 验证密钥,用于标识游戏账号 | 获取方法:
1. 游戏内打开一次跃迁记录页面,然后在“游戏安装目录/StarRail_Data/webCaches/Cache/Cache_Data/data_2”,寻找类似“”的链接,该参数的值在其中
2. [通过Cookie获取用户`authkey`](hoyolab/user/info.md#通过cookie获取用户authkey) |
| lang | str | 语言,即返回数据中抽到的项目名称
zh-cn zh 简体中文
zh-tw 繁体中文
en-us en 英语
ru-ru ru 俄语
ja-jp ja 日语
以及其它国际语言代码 | |
| size | num | 返回数据中的最大数据数量。最小为0,最大为20。若小于0,则返回0个数据;若大于20,则返回最大20个数据 | |
| end_id | num | 见下文的说明 | |
@@ -1906,7 +1906,8 @@ _请求方式:GET_
| 字段 | 类型 | 内容 | 备注 |
| ---- | ---- | ---- | ---- |
-| server | str |
+| role_id | num | 星穹铁道UID | |
+| server | str | 服务器名称 | |
根对象:
@@ -2000,7 +2001,7 @@ _请求方式:GET_
| 字段 | 类型 | 内容 | 备注 |
| ---- | ---- | ---- | ---- |
| authkey_ver | num | 1 | |
-| authkey | str | 验证密钥,用于标识游戏账号 | 打开“游戏安装目录/StarRail_Data/webCaches/Cache/Cache_Data/data_2”,寻找类似“ |
+| authkey | str | 验证密钥,用于标识游戏账号 | 获取方法:
1. 游戏内打开一次跃迁记录页面,然后在“游戏安装目录/StarRail_Data/webCaches/Cache/Cache_Data/data_2”,寻找类似“”的链接,该参数的值在其中
2. [通过Cookie获取用户`authkey`](hoyolab/user/info.md#通过cookie获取用户authkey) |
| lang | str | 语言,即返回数据中抽到的项目名称
zh-cn zh 简体中文
zh-tw 繁体中文
en-us en 英语
ru-ru ru 俄语
ja-jp ja 日语
以及其它国际语言代码 | |
| size | num | 返回数据中的最大数据数量。最小为0,最大为20。若小于0,则返回0个数据;若大于20,则返回最大20个数据 | |
| end_id | num | 见下文的说明 | |
diff --git a/hoyolab/user/info.md b/hoyolab/user/info.md
index 721a2f4..4da9d68 100644
--- a/hoyolab/user/info.md
+++ b/hoyolab/user/info.md
@@ -2,7 +2,376 @@
- [用户信息](#用户信息)
- [获取用户完整信息](#获取用户完整信息)
+ - [获取用户所有文章](#获取用户所有文章)
+ - [通过Cookie获取用户`authkey`](#通过cookie获取用户authkey)
---
-# 获取用户完整信息
\ No newline at end of file
+## 获取用户完整信息
+
+**国服:**
+
+_请求方式:GET_
+
+`https://bbs-api.miyoushe.com/user/api/getUserFullInfo`
+
+**参数:**
+
+| 字段 | 类型 | 内容 | 备注 |
+| ---- | ---- | ---- | ---- |
+| uid | num | 米游社账号ID | |
+
+**JSON返回:**
+
+根对象:
+
+| 字段 | 类型 | 内容 | 备注 |
+| ---- | ---- | ---- | ---- |
+| retcode | num | 返回码
-20001 用户不存在 | |
+| message | str | 返回消息 | |
+| data | obj | 用户信息 | |
+
+`data`对象:
+
+| 字段 | 类型 | 内容 | 备注 |
+| ---- | ---- | ---- | ---- |
+| user_info | obj | 该用户的详细信息 | |
+| follow_relation | obj | 请求Cookie对应用户与该用户的关系 | |
+| auth_relations | obj | 待调查 | 似乎总是都为空对象 |
+| is_in_blacklist | bool | 是否被封禁 | |
+| is_has_collection | bool | 是否拥有文章合集 | |
+| is_creator | bool | false | |
+| customer_service | obj | 客服工作人员信息 | |
+| audit_info | obj | 昵称与简介的审核状态信息 | |
+
+`data`对象→`user_info`对象:
+
+| 字段 | 类型 | 内容 | 备注 |
+| ---- | ---- | ---- | ---- |
+| uid | str | 该米游社用户的ID | |
+| nickname | str | 昵称 | |
+| introduce | str | 该用户的简介内容 | |
+| avatar | str | 该用户的头像的ID | |
+| gender | num | 该用户设置的性别
0 保密
1 男
2 女 | |
+| certification | obj | 该用户获得的认证的信息 | |
+| level_exps | arr | 该用户在每个论坛分区的等级 | |
+| achieve | obj | 该用户的粉丝、关注、话题等信息 | |
+| community_info | obj | 该用户在社区中的信息 | |
+| avatar_url | str | 该用户头像的图片URL | |
+| certifications | arr | 该用户得到的认证信息 | |
+| level_exp | null | 待调查 | 似乎总是为空 |
+| pendant | str | 该用户的头像框图片URL | |
+| is_logoff | bool | 是否已注销 | |
+| ip_region | str | 该用户的IP属地 | |
+
+`data`对象→`user_info`对象→`certification`对象:
+
+| 字段 | 类型 | 内容 | 备注 |
+| ---- | ---- | ---- | ---- |
+| type | num | 认证类型
0 没有认证
1 官方认证
2 个人认证 | |
+| label | str | 认证标签 | |
+
+`data`对象→`user_info`对象→`level_exps`数组→对象:
+
+| 字段 | 类型 | 内容 | 备注 |
+| ---- | ---- | ---- | ---- |
+| level | num | 在该分区的等级 | |
+| exp | num | 在该分区的经验 | |
+| game_id | num | 该论坛分区的ID | |
+
+`data`对象→`user_info`对象→`achieve`对象:
+
+| 字段 | 类型 | 内容 | 备注 |
+| ---- | ---- | ---- | ---- |
+| like_num | str | 该用户获得的点赞数 | |
+| post_num | str | 该用户发布的文章数 | |
+| replypost_num | str | 该用户的转发文章数 | |
+| follow_cnt | str | 关注的用户数 | |
+| followed_cnt | str | 该用户的粉丝数 | |
+| topic_cnt | str | 该用户的建立的话题数 | |
+| new_follower_num | str | 待调查 | |
+| good_post_num | str | 该用户的精选文章数 | |
+| follow_collection_cnt | str | 该用户关注的文章合集数 | |
+
+`data`对象→`user_info`对象→`community_info`对象:
+
+| 字段 | 类型 | 内容 | 备注 |
+| ---- | ---- | ---- | ---- |
+| is_realname | bool | true | |
+| agree_status | bool | true | |
+| silent_end_time | num | 禁言结束时间的Unix时间戳 | |
+| forbid_end_time | num | 封禁结束时间的Unix时间戳 | |
+| info_upd_time | num | 个人信息更新时间的时间戳,有时为年份 | |
+| privacy_invisible | obj | 该用户的隐私可见性设置 | |
+| notify_disable | obj | 该用户的通知屏蔽设置 | |
+| has_initialized | bool | true | |
+| user_func_status | obj | 该用户开启的功能 | |
+| forum_silent_info | arr | 待调查 | |
+| last_login_ip | str | 上次登录的IP | 总是为空字符串 |
+| last_login_time | num | 上次登录时间的Unix时间戳 | 总是为0 |
+| created_at | num | 用户注册时间的Unix时间戳 | |
+
+`data`对象→`user_info`对象→`community_info`对象→`privacy_invisible`对象:
+
+| 字段 | 类型 | 内容 | 备注 |
+| ---- | ---- | ---- | ---- |
+| post | bool | 是否隐藏发布的文章 | |
+| collect | bool | 是否隐藏收藏的文章 | |
+| watermark | bool | 在评论和文章中的图片是否添加水印 | |
+| reply | bool | 是否隐藏回复 | |
+| post_and_instant | bool | 待调查 | |
+
+`data`对象→`user_info`对象→`community_info`对象→`notify_disable`对象:
+
+| 字段 | 类型 | 内容 | 备注 |
+| ---- | ---- | ---- | ---- |
+| reply | bool | 是否屏蔽回复提醒 | |
+| upvote | bool | 是否屏蔽点赞提醒 | |
+| follow | bool | 是否屏蔽关注提醒 | |
+| system | bool | 是否屏蔽系统信息 | |
+| chat | bool | 是否屏蔽评论提醒 | |
+
+`data`对象→`user_info`对象→`community_info`对象→`user_func_status`对象:
+
+| 字段 | 类型 | 内容 | 备注 |
+| ---- | ---- | ---- | ---- |
+| enable_history_view | bool | 是否开启历史记录 | |
+| enable_recommend | bool | 是否开启推荐 | |
+| enable_mention | bool | 是否开启@ | |
+| user_center_view | num | 待调查 | |
+
+`data`对象→`user_info`对象→`certifications`数组→对象:
+
+| 字段 | 类型 | 内容 | 备注 |
+| ---- | ---- | ---- | ---- |
+| id | str | 该认证的ID | |
+| certification_id | str | 0 | |
+| type | num | 认证类型
1 官方认证
2 个人认证 | |
+| label | str | 认证标签 | |
+
+`data`对象→`follow_relation`对象:
+
+| 字段 | 类型 | 内容 | 备注 |
+| ---- | ---- | ---- | ---- |
+| is_following | bool | 是否已关注该用户 | 若未设置Cookie,则始终为false |
+| is_followed | bool | 是否被该用户关注 | 若未设置Cookie,则始终为false |
+
+`data`对象→`customer_service`对象:
+
+| 字段 | 类型 | 内容 | 备注 |
+| ---- | ---- | ---- | ---- |
+| is_customer_service_staff | bool | 是否是客服工作人员 | |
+| game_id | num | 未知 | |
+
+`data`对象→`audit_info`对象:
+
+| 字段 | 类型 | 内容 | 备注 |
+| ---- | ---- | ---- | ---- |
+| is_nickname_in_audit | bool | 昵称是否正在审核 | |
+| nickname | str | 空字符串 | |
+| is_introduce_in_audit | bool | 简介是否正在审核 | |
+| introduce | str | 空字符串 | |
+| nickname_status | num | 昵称状态
0 正常 | |
+
+
+
+查看示例
+
+```json
+{
+ "retcode": 0,
+ "message": "OK",
+ "data": {
+ "user_info": {
+ "uid": "75379477",
+ "nickname": "提瓦特徒步团",
+ "introduce": "人类的本质是搬运工",
+ "avatar": "10013",
+ "gender": 0,
+ "certification": {
+ "type": 1,
+ "label": "官方认证:梦想是环游世界"
+ },
+ "level_exps": [
+ {
+ "level": 16,
+ "exp": 101229,
+ "game_id": 2
+ },
+ {
+ "level": 1,
+ "exp": 0,
+ "game_id": 8
+ },
+ {
+ "level": 1,
+ "exp": 0,
+ "game_id": 5
+ },
+ {
+ "level": 2,
+ "exp": 60,
+ "game_id": 1
+ },
+ {
+ "level": 1,
+ "exp": 0,
+ "game_id": 4
+ },
+ {
+ "level": 1,
+ "exp": 0,
+ "game_id": 3
+ },
+ {
+ "level": 1,
+ "exp": 0,
+ "game_id": 6
+ }
+ ],
+ "achieve": {
+ "like_num": "38092256",
+ "post_num": "266",
+ "replypost_num": "1438",
+ "follow_cnt": "2",
+ "followed_cnt": "1000036",
+ "topic_cnt": "0",
+ "new_follower_num": "625674",
+ "good_post_num": "0",
+ "follow_collection_cnt": "0"
+ },
+ "community_info": {
+ "is_realname": true,
+ "agree_status": true,
+ "silent_end_time": 0,
+ "forbid_end_time": 0,
+ "info_upd_time": 2022,
+ "privacy_invisible": {
+ "post": false,
+ "collect": false,
+ "watermark": true,
+ "reply": false,
+ "post_and_instant": false
+ },
+ "notify_disable": {
+ "reply": false,
+ "upvote": false,
+ "follow": false,
+ "system": false,
+ "chat": false
+ },
+ "has_initialized": true,
+ "user_func_status": {
+ "enable_history_view": true,
+ "enable_recommend": true,
+ "enable_mention": true,
+ "user_center_view": 1
+ },
+ "forum_silent_info": [],
+ "last_login_ip": "",
+ "last_login_time": 0,
+ "created_at": 0
+ },
+ "avatar_url": "https://img-static.mihoyo.com/communityweb/avatar/avatar10013.png",
+ "certifications": [
+ {
+ "id": "120",
+ "certification_id": "0",
+ "type": 1,
+ "label": "梦想是环游世界"
+ }
+ ],
+ "level_exp": null,
+ "pendant": "",
+ "is_logoff": false,
+ "ip_region": "上海"
+ },
+ "follow_relation": {
+ "is_following": true,
+ "is_followed": false
+ },
+ "auth_relations": [],
+ "is_in_blacklist": false,
+ "is_has_collection": false,
+ "is_creator": false,
+ "customer_service": {
+ "is_customer_service_staff": false,
+ "game_id": 0
+ },
+ "audit_info": {
+ "is_nickname_in_audit": false,
+ "nickname": "",
+ "is_introduce_in_audit": false,
+ "introduce": "",
+ "nickname_status": 0
+ }
+ }
+}
+```
+
+
+
+## 获取用户所有文章
+
+**国服:**
+
+_请求方式:GET_
+
+``
+
+## 通过Cookie获取用户`authkey`
+
+在请求例如获取用户的游戏抽卡记录等API时需要使用到`authkey`。
+
+**国服:**
+
+_请求方式:POST_
+
+> _需要验证应用Cookie_
+
+`https://api-takumi.miyoushe.com/account/auth/api/genAuthKey`
+
+**JSON请求:**
+
+| 字段 | 类型 | 内容 | 备注 |
+| ---- | ---- | ---- | ---- |
+| game_biz | str | 米游社区域
bbs_cn 国服 | |
+
+**JSON返回:**
+
+根对象:
+
+| 字段 | 类型 | 内容 | 备注 |
+| ---- | ---- | ---- | ---- |
+| retcode | num | 返回码
1002 请求体的`game_biz`字段不正确
-100 Cookie不正确 | |
+| message | str | 返回消息 | |
+| data | obj | `authkey`信息 | |
+
+`data`对象:
+
+| 字段 | 类型 | 内容 | 备注 |
+| ---- | ---- | ---- | ---- |
+| sign_type | num | 2 | |
+| authkey_ver | num | 1 | |
+| authkey | str | `authkey` | |
+
+
+查看示例
+
+```json
+{
+ "retcode": 0,
+ "message": "OK",
+ "data": {
+ "sign_type": 2,
+ "authkey_ver": 1,
+ "authkey": "..."
+ }
+}
+```
+
+
+
+**国际服:**
+
+`未知`
\ No newline at end of file