多米应用API
  1. 系统
多米应用API
  • 说明文档
  • 认证
    • 用户登录
      POST
    • 用户注册
      POST
  • 系统
    • 获取站点信息
      GET
    • 获取系统设置
      GET
  • 版块
    • 获取版块列表
      GET
    • 获取版块详情
      GET
  • 帖子
    • 获取帖子列表
      GET
    • 帖子详情
      GET
    • 回复列表
      GET
  • 发布
    • 发表帖子
      POST
    • 发表回复
      POST
    • 收藏帖子
      POST
    • 推荐帖子
      POST
    • 文件上传
      POST
  • 用户
    • 获取用户信息
      GET
    • 更新用户资料
      POST
    • 获取用户列表
      GET
  • 通知
    • 获取通知消息列表
      POST
    • 获取未读消息统计
      POST
    • 标记消息为已读
      POST
    • 忽略所有消息
      POST
    • 删除消息
      POST
  • 我的
    • 获取用户收藏的帖子
    • 获取用户发布的帖子
    • 获取积分记录
  • 好友
    • 获取好友列表
    • 获取好友分组
    • 添加好友
    • 删除好友
    • 检查好友关系
    • 获取好友请求列表
    • 处理好友请求
    • 修改好友分组
    • 修改好友备注
  1. 系统

获取站点信息

开发中
GET
/site_info
获取站点基本信息
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET '/site_info' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOiIxIiwidXNlcm5hbWUiOiJ0d2VsdmUiLCJlbWFpbCI6IjQ2ODkwOTc2NUBxcS5jb20iLCJncm91cGlkIjoiMSIsImlhdCI6MTc0NTA4MTYzOCwiZXhwIjoxNzQ3NjczNjM4fQ.ot07bSsVEnmB9rpJftJI2qMIXX-VZHex81kDi49Vxi0' \
--header 'Content-Type: application/json'
响应示例响应示例
{
    "code": 200,
    "message": "success",
    "data": {
        "site_name": "DiscuzX",
        "site_url": "https://dzx35.xcxgy.cn/",
        "site_qq": "468909765",
        "site_icp": "晋ICP备16011496号-5",
        "site_plugins": {
            "available": [
                "domi_blogapp",
                "domi_api",
                "domi_translate_select",
                "domi_zybx",
                "nimba_romotepic",
                "domi_hao",
                "domi_bwxsm",
                "domi_bwxs",
                "newsletter",
                "domi_pyqpz",
                "domi_wechatmini",
                "domi_link",
                "domi_share",
                "domi_pwa",
                "domi_ptm",
                "domi_theme",
                "domi_ksapp",
                "domi_translate",
                "hook",
                "mobile"
            ],
            "func": {
                "hookscript": {
                    "discuzcode": true,
                    "common": true
                },
                "hookscriptmobile": {
                    "discuzcode": true,
                    "common": true
                }
            },
            "version": {
                "domi_blogapp": "2.0.0",
                "domi_api": "1.1",
                "domi_translate_select": "1.0",
                "domi_zybx": "1.0",
                "nimba_romotepic": "v4.0.1",
                "domi_hao": "1.0.4",
                "domi_bwxsm": "1.0.2",
                "domi_bwxs": "1.0.2",
                "newsletter": "1.0.1",
                "domi_pyqpz": "1.0.1",
                "domi_wechatmini": "1.0.2",
                "domi_link": "1.0.3",
                "domi_share": "1.0.1",
                "domi_pwa": "1.0.3",
                "domi_ptm": "1.0.1",
                "domi_theme": "1.0.2",
                "domi_ksapp": "1.0.1",
                "domi_translate": "1.1.0",
                "hook": "2.01.01.2312201605",
                "mobile": "1.5.1"
            },
            "spacecp": {
                "domi_hao:my": {
                    "displayorder": 1000,
                    "adminid": "0",
                    "name": "我提交的",
                    "url": "",
                    "directory": "domi_hao/"
                }
            }
        },
        "site_admin": "468909765@qq.com",
        "discuz_version": "X3.5",
        "timezone": "8",
        "setting": {
            "array": {
                "memory": {
                    "common_member": 0,
                    "forum_thread": 172800,
                    "forum_thread_forumdisplay": 300,
                    "forum_postcache": 300,
                    "forum_collectionrelated": 0,
                    "forum_collection": 300,
                    "home_follow": 86400,
                    "common_member_verify": 0,
                    "common_member_field_forum": 0,
                    "common_member_field_home": 0,
                    "common_member_profile": 0,
                    "common_member_status": 0,
                    "common_member_count": 0
                },
                "ipaccess": "",
                "mobile": {
                    "allowmobile": 1,
                    "allowmnew": 0,
                    "mobileforward": 0,
                    "mobileregister": 1,
                    "mobileseccode": 0,
                    "mobilesimpletype": 0,
                    "mobilecachetime": 24000,
                    "mobilecomefrom": "",
                    "mobilepreview": 0,
                    "legacy": 0,
                    "wml": 0,
                    "portal": {
                        "catnav": 0,
                        "wzpicture": 0,
                        "wzlist": 0
                    },
                    "forum": {
                        "index": 3,
                        "statshow": 0,
                        "displayorder3": 1,
                        "topicperpage": 20,
                        "postperpage": 10,
                        "forumview": 0,
                        "iconautowidth": 0
                    }
                },
                "domain": {
                    "defaultindex": "forum.php",
                    "holddomain": "www|*blog*|*space*|*bbs*",
                    "list": [],
                    "app": {
                        "portal": "",
                        "forum": "",
                        "group": "",
                        "home": "",
                        "default": ""
                    },
                    "root": {
                        "home": "",
                        "group": "",
                        "forum": "",
                        "topic": "",
                        "channel": ""
                    }
                },
                "timeoffset": "8",
                "dateformat": "Y-n-j",
                "timeformat": "H:i",
                "bbclosed": "0",
                "topicperpage": "20",
                "postperpage": "1

请求参数

Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token
示例:
Authorization: Bearer ********************
Query 参数

Header 参数

返回响应

🟢200成功
application/json
Body

修改于 2025-05-09 05:33:14
上一页
用户注册
下一页
获取系统设置
Built with