XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet
公开
关注 0 Fork 0 Star 0
返回提交历史

XFEstudio/bilibili-API-collect

Update space.md

8c9e011
ProgramRipper <2892771624@qq.com>
提交于

代码差异

1 个文件 +200 -16
Modified user/space.md +200 -16
@@ -872,6 +872,190 @@ curl 'http://api.bilibili.com/x/space/notice/set'\
872 872
873 873 ### 主页板块布局与权限
874 874
875 #### 查看空间设置
876
877 > http://space.bilibili.com/ajax/settings/getSettings(带有转义)
878
879 *请求方式:POST*
880
881 **正文参数( application/x-www-form-urlencoded ):**
882
883 | 参数名 | 类型 | 内容 | 必要性 | 备注 |
884 | ------ | ---- | ----------- | ------ | ---- |
885 | mid | num | 目标用户UID | 必要 | |
886
887 **json回复:**
888
889 根对象:
890
891 | 字段 | 类型 | 内容 | 备注 |
892 | ------ | ------------------- | -------- | ---- |
893 | status | bool | 用户是否存在 | true:存在<br>false:不存在 |
894 | data | 用户存在时:obj<br>用户不存在时:str| 用户存在时:信息本体<br>用户不存在时:错误信息 | |
895
896 `data`对象:
897
898 | 字段 | 类型 | 内容 | 备注 |
899 | ---------------------- | ----- | -------------------- | ------------ |
900 | privacy | obj | 空间隐私权限 | |
901 | index_order | array | 空间板块布局 | |
902 | theme | str | default(主题?) | 作用尚不明确 |
903 | theme_preview_img_path | str | (主题预览图路径?) | 作用尚不明确 |
904 | toutu | obj | 空间头图 | |
905
906 `privacy`对象:
907
908 | 字段 | 类型 | 内容 | 备注 |
909 | ----------- | ---- | -------------- | ------------------------------ |
910 | bangumi | num | 追番及追剧 | 0:隐藏<br>1:公开<br>**下同** |
911 | bbq | num | (表白墙?) | 作用尚不明确 |
912 | channel | num | 频道 | |
913 | coins_video | num | 最近投币的视频 | |
914 | comic | num | 追漫 | |
915 | dress_up | num | 装扮 | |
916 | fav_video | num | 收藏夹 | |
917 | groups | num | (圈子?) | 作用尚不明确 |
918 | likes_video | num | 最近点赞的视频 | |
919 | played_game | num | 最近玩过的游戏 | |
920 | tags | num | 订阅标签 | |
921 | user_info | num | 个人资料 | |
922
923 `index_order`数组:
924
925 | 项 | 类型 | 内容 | 备注 |
926 | ---- | ---- | --------- | -------------------------------------------- |
927 | 0 | obj | 板块1 | 根据板块布局顺序排序<br>先左侧布局后右侧布局 |
928 | n | obj | 板块(n+1) | |
929 | …… | obj | …… | …… |
930
931 `index_order`数组内对象:
932
933 | 字段 | 类型 | 内容 | 备注 |
934 | ---- | ---- | -------- | ---- |
935 | id | num | 板块编号 | |
936 | name | str | 板块名称 | |
937
938 `toutu`对象:
939
940 | 字段 | 类型 | 内容 | 备注 |
941 | ------------- | ---- | -------------------- | ---------------------------------------- |
942 | sid | num | 1 | 作用尚不明确 |
943 | expire | num | | 作用尚不明确 |
944 | s_img | str | 空间头图小图相对路径 | 完整url为`http://i0.hdslb.com/`+相对路径 |
945 | l_img | str | 空间头图相对路径 | **同上** |
946 | android_img | str | 安卓端头图 | 未启用 |
947 | iphone_img | str | iPhone端头图 | 未启用 |
948 | ipad_img | str | iPad端头图 | 未启用 |
949 | thumbnail_img | str | 缩略图 | 未启用 |
950 | platform | num | 0 | 作用尚不明确 |
951
952 **示例:**
953
954 查看`UID=2`的空间设置
955
956 ```shell
957 curl 'http://space.bilibili.com/ajax/settings/getSettings'\
958 --data-urlencode 'mid=2'
959 ```
960
961 <details>
962 <summary>查看响应示例:</summary>
963
964 ```json
965 {
966 "status":true,
967 "data":{
968 "privacy":{
969 "bangumi":1,
970 "bbq":1,
971 "channel":1,
972 "coins_video":0,
973 "comic":1,
974 "dress_up":1,
975 "fav_video":0,
976 "groups":0,
977 "likes_video":0,
978 "played_game":1,
979 "tags":1,
980 "user_info":1
981 },
982 "index_order":[
983 {
984 "id":1,
985 "name":"我的稿件"
986 },
987 {
988 "id":8,
989 "name":"我的专栏"
990 },
991 {
992 "id":7,
993 "name":"我的频道"
994 },
995 {
996 "id":2,
997 "name":"我的收藏夹"
998 },
999 {
1000 "id":3,
1001 "name":"订阅番剧"
1002 },
1003 {
1004 "id":4,
1005 "name":"订阅标签"
1006 },
1007 {
1008 "id":5,
1009 "name":"最近投币的视频"
1010 },
1011 {
1012 "id":6,
1013 "name":"我的圈子"
1014 },
1015 {
1016 "id":9,
1017 "name":"我的相簿"
1018 },
1019 {
1020 "id":21,
1021 "name":"公告"
1022 },
1023 {
1024 "id":22,
1025 "name":"直播间"
1026 },
1027 {
1028 "id":23,
1029 "name":"个人资料"
1030 },
1031 {
1032 "id":24,
1033 "name":"官方活动"
1034 },
1035 {
1036 "id":25,
1037 "name":"最近玩过的游戏"
1038 }
1039 ],
1040 "theme":"default",
1041 "theme_preview_img_path":"",
1042 "toutu":{
1043 "sid":1,
1044 "expire":2861874560,
1045 "s_img":"bfs/space/768cc4fd97618cf589d23c2711a1d1a729f42235.png",
1046 "l_img":"bfs/space/cb1c3ef50e22b6096fde67febe863494caefebad.png",
1047 "android_img":"",
1048 "iphone_img":"",
1049 "ipad_img":"",
1050 "thumbnail_img":"",
1051 "platform":0
1052 }
1053 }
1054 }
1055 ```
1056
1057 </details>
1058
875 1059 #### 调整空间板块布局
876 1060
877 1061 > http://space.bilibili.com/ajax/settings/setIndexOrder
@@ -891,22 +1075,22 @@ curl 'http://api.bilibili.com/x/space/notice/set'\
891 1075
892 1076 布局参数`index_order`:
893 1077
894 | 值 | 含义 |
895 | ---- | ---------------------- |
896 | 1 | (左侧)我的稿件 |
897 | 2 | (左侧)我的收藏夹 |
898 | 3 | (左侧)订阅番剧 |
899 | 4 | (左侧)订阅标签 |
900 | 5 | (左侧)最近投币的视频 |
901 | 6 | **作用尚不明确** |
902 | 7 | (左侧)我的频道 |
903 | 8 | (左侧)我的专栏 |
904 | 9 | (左侧)我的相簿 |
905 | 21 | (右侧)公告 |
906 | 22 | (右侧)直播间 |
907 | 23 | (右侧)个人资料 |
908 | 24 | (右侧)官方活动 |
909 | 25 | (右侧)最近玩的游戏 |
1078 | 值 | 含义 |
1079 | ---- | ------------------------------------ |
1080 | 1 | (左侧)我的稿件 |
1081 | 2 | (左侧)我的收藏夹 |
1082 | 3 | (左侧)订阅番剧 |
1083 | 4 | (左侧)订阅标签 |
1084 | 5 | (左侧)最近投币的视频 |
1085 | 6 | (左侧)我的圈子**(此板块被隐藏)** |
1086 | 7 | (左侧)我的频道 |
1087 | 8 | (左侧)我的专栏 |
1088 | 9 | (左侧)我的相簿 |
1089 | 21 | (右侧)公告 |
1090 | 22 | (右侧)直播间 |
1091 | 23 | (右侧)个人资料 |
1092 | 24 | (右侧)官方活动 |
1093 | 25 | (右侧)最近玩的游戏 |
910 1094
911 1095 **json回复:**
912 1096