开放原子开源基金会开源运营专区APIs
  1. 资讯
开放原子开源基金会开源运营专区APIs
  • 接口文档
  • 前台
    • 推荐
      • 组织
        • 组织列表
      • 开发者
        • 开发者列表
      • 仓库
        • 仓库列表
      • 资讯
        • 推荐-资讯接口
          POST
        • 推荐-资讯详情接口
          GET
        • 点赞、收藏接口(已包含取消操作)-需登录
          POST
        • 点赞、收藏、浏览统计接口
          GET
    • 首页
      • 社区
        • 获取社区
      • 导航栏
        • 查询社区导航栏
      • 运营
        • 运营位通用接口
      • 模版
        • 获取社区模版关系表中控制的模版
      • 热门组织
        • 热门组织
      • 热门开发者
        • 热门开发者
      • 热门仓库
        • 热门仓库
      • 精选
        • 首页精选-模块
      • 推荐
        • 首页-推荐-模版1
        • 首页-推荐-模板2,3
        • 首页-组织
        • 首页-仓库
        • 首页-最新
      • 数据
        • 获取首页数据信息
        • PV,UV实时统计接口(每访问一次页面调用一次)
      • footer
        • footer列表
      • 邮箱
        • 添加订阅
        • 退订邮箱
      • 资讯
        • 资讯模块
      • 活动
        • 活动列表
    • 登录/关注
      • 当前登录用户信息
      • 用户小红点
      • 关注用户
      • 取消关注用户
      • 关注组织
      • 取消关注组织
      • 加入社区
      • 当前登录用户是否已加入该社区
      • code换token
    • 悬浮窗
      • 悬浮窗列表
    • 自定义弹窗
      • 弹窗信息接口
    • SEO
      • 获取robots文件内容
      • 获取sitemap接口
    • 广告
      • 获取广告
    • 原生登录接口
      • 注册-邮箱
      • 登录-账号密码
      • 验证码-邮箱
      • 登录-邮箱验证码
      • 账号-登出
      • 账号-注销
  1. 资讯

推荐-资讯接口

开发中
POST
https://openatom.atomgit.com/api/information/page
分页文章资讯

请求参数

Header 参数
X-ATOMGIT-POP-COMMUNITY
string 
可选
示例值:
openatom
Body 参数application/json
queryColumn
integer 
查询栏目
必需
0.全部 1.精选
pageNum
integer 
当前页面
必需
pageSize
integer 
页面容量
必需
keyWord
string 
关键词搜索
可选
示例
{
    "queryColumn": 1,
    "pageNum": 1,
    "pageSize": 5,
    "keyWord": ""
}

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://openatom.atomgit.com/api/information/page' \
--header 'X-ATOMGIT-POP-COMMUNITY: openatom' \
--header 'X-ATOMGIT-POP-COMMUNITY;' \
--header 'Content-Type: application/json' \
--data-raw '{
    "queryColumn": 1,
    "pageNum": 1,
    "pageSize": 5,
    "keyWord": ""
}'

返回响应

🟢200成功
application/json
Body
code
integer 
必需
msg
string 
必需
data
object 
必需
records
array [object {13}] 
必需
total
string 
总共数量
必需
size
string 
每页数量
必需
current
string 
当前页码
必需
pages
string 
总共页码
必需
示例
{
    "code": 200,
    "msg": "成功",
    "data": {
        "records": [
            {
                "informationId": "367850921226539008",
                "informationTitle": "招募倒计时 | 操作系统大会&openEuler Summit 2024即将盛大开启",
                "informationMsg": "11月15-16日,北京中关村国际创新中心,操作系统大会&openEuler Summit 2024等你参加!\n🌟 三十余场主题演讲,揭秘openEuler商业化和全球化成果;\n🎉 百余个创新展点,亲身体验openEuler最新解决方案,见证联合创新案例;\n🔍 面对面交流,与技术专家共探开发工具,动手实践;\n🌐 共商智能化、数字化发展,助力全球开源生态建设。\n🔥议题征集、SIG组招募等进入倒计时,立即报名!",
                "labelNameList": [
                    "开放原子开源基金会",
                    "openEuler"
                ],
                "coverUrl": "https://file.pop.atomgit.com/imgs/openatom/2024/10/12/eefadcf7c5e1897ca6de635c45db0ee8.png",
                "informationType": 1,
                "informationState": 1,
                "informationViews": 51,
                "updateTime": "2024-10-16 11:45:40",
                "informationKeywords": null,
                "informationCollectNum": 0,
                "informationLikeNum": 0,
                "publishTime": "2024-10-11 11:49:29"
            },
            {
                "informationId": "366906539690299392",
                "informationTitle": "openKylin亮相国际峰会LAS 2024,持续助力Linux生态构建",
                "informationMsg": "openKylin社区亮相2024 Linux App Summit,展示了创新的Kylin Mobile Runtime Environment(KMRE)技术方案,让我们共同回顾这场精彩技术盛宴",
                "labelNameList": [
                    "开源项目",
                    "开放原子开源基金会",
                    "openKylin"
                ],
                "coverUrl": "https://file.pop.atomgit.com/imgs/openatom/2024/10/09/b767a7f83100c0ffdc2fea5aa384e09e.png",
                "informationType": 1,
                "informationState": 1,
                "informationViews": 17,
                "updateTime": "2024-10-09 19:21:54",
                "informationKeywords": null,
                "informationCollectNum": 0,
                "informationLikeNum": 0,
                "publishTime": "2024-10-09 18:21:13"
            },
            {
                "informationId": "366906532903915520",
                "informationTitle": "开放原子开源基金会新增捐赠人(2024年9月)",
                "informationMsg": "开放原子开源基金会新增捐赠人(2024年9月)",
                "labelNameList": [
                    "开源项目",
                    "开源基金会",
                    "OpenHarmony",
                    "openEuler",
                    "开源捐赠"
                ],
                "coverUrl": "https://file.pop.atomgit.com/imgs/openatom/2024/10/09/b707407cbd1ae07893a04e7c55022e91.png",
                "informationType": 1,
                "informationState": 1,
                "informationViews": 77,
                "updateTime": "2024-10-09 19:19:53",
                "informationKeywords": null,
                "informationCollectNum": 0,
                "informationLikeNum": 0,
                "publishTime": "2024-10-09 18:18:13"
            },
            {
                "informationId": "356759137566199808",
                "informationTitle": "社区贡献 | OpenTenBase架构介绍与部署步骤",
                "informationMsg": "OpenTenBase架构介绍与部署步骤",
                "labelNameList": [
                    "开源项目",
                    "开放原子开源基金会",
                    "OpenTenBase"
                ],
                "coverUrl": "https://file.pop.atomgit.com/imgs/openatom/2024/09/11/8676210b8f9c0dc46787c8bbfbddcf6e.png",
                "informationType": 1,
                "informationState": 1,
                "informationViews": 59,
                "updateTime": "2024-09-11 19:53:55",
                "informationKeywords": null,
                "informationCollectNum": 0,
                "informationLikeNum": 1,
                "publishTime": "2024-09-11 19:44:46"
            },
            {
                "informationId": "356759129513136128",
                "informationTitle": "2024开放原子开源生态大会 | openEuler引领开源生态创新,成就区域发展与全球影响力",
                "informationMsg": "openEuler引领开源生态创新,成就区域发展与全球影响力",
                "labelNameList": [
                    "开放原子开源基金会",
                    "openEuler"
                ],
                "coverUrl": "https://file.pop.atomgit.com/imgs/openatom/2024/09/11/408d3a0fca55f8e103ce0af498238bdf.png",
                "informationType": 1,
                "informationState": 1,
                "informationViews": 131,
                "updateTime": "2024-09-11 19:46:41",
                "informationKeywords": null,
                "informationCollectNum": 0,
                "informationLikeNum": 0,
                "publishTime": "2024-09-11 19:46:33"
            }
        ],
        "total": 26,
        "size": 5,
        "current": 1,
        "pages": 6
    }
}
修改于 2024-10-22 12:18:50
上一页
仓库列表
下一页
推荐-资讯详情接口
Built with