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

首页-推荐-模板2,3

开发中
GET
https://openatom.atomgit.com/api/information/v2/recommend_list

请求参数

Query 参数
num
integer 
页码
可选
示例值:
1
size
integer 
每页条数
可选
示例值:
5
Header 参数
X-ATOMGIT-POP-COMMUNITY
string 
社区CODE
可选
默认值:
openatom

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://openatom.atomgit.com/api/information/v2/recommend_list?num=1&size=5' \
--header 'X-ATOMGIT-POP-COMMUNITY: openatom'

返回响应

🟢200成功
application/json
Body
code
integer 
必需
msg
string 
必需
data
array [object {28}] 
必需
resourceType
string 
资源类型
必需
information warehouse org
informationId
string 
资讯ID
可选
resourceType : information
informationTitle
string 
资讯标题
可选
resourceType : information
informationMsg
string 
资讯简介
可选
resourceType : information
informationUrl
string 
资讯地址
可选
resourceType : information
informationType
integer 
资讯类型
可选
resourceType : information 1精选 2非精选
informationViews
integer 
文章浏览量
可选
resourceType : information
informationCollectNum
integer 
文章收藏数
可选
resourceType : information
informationLikeNum
integer 
文章点赞数
可选
resourceType : information
publishTime
string 
发布时间
可选
resourceType : information
isLike
boolean 
是否点赞
可选
resourceType : information
isCollect
boolean 
是否收藏
可选
resourceType : information
labelNameList
array [object {1}] 
标签列表
可选
resourceType : information
description
string 
描述
必需
resourceType : warehouse resourceType : org
jump
string 
跳转地址
必需
resourceType : warehouse resourceType : org
starCount
integer 
star数
可选
resourceType : warehouse
forkCount
integer 
fork数
可选
resourceType : warehouse
license
null 
开源协议
可选
resourceType : warehouse
name
string 
仓库/组织名称
必需
resourceType : warehouse resourceType : org
belongName
null 
归属人/组织
可选
resourceType : warehouse resourceType : org
isSelected
integer 
是否精选
必需
resourceType : warehouse resourceType : org 1精选
id
string 
组织ID
可选
resourceType : org
avatarUrl
string 
图像
可选
resourceType : org
link
null 
可选
resourceType : org
profile
null 
简介
可选
resourceType : org
projectNum
integer 
项目数
可选
resourceType : org
memberNum
integer 
人数
可选
resourceType : org
warehouseList
array [object {2}] 
仓库列表
可选
resourceType : org
示例
{
    "code": 0,
    "msg": "string",
    "data": [
        {
            "resourceType": "string",
            "informationId": "string",
            "informationTitle": "string",
            "informationMsg": "string",
            "informationUrl": "string",
            "informationType": 0,
            "informationViews": 0,
            "informationCollectNum": 0,
            "informationLikeNum": 0,
            "publishTime": "string",
            "isLike": true,
            "isCollect": true,
            "labelNameList": [
                {
                    "labelName": "string"
                }
            ],
            "description": "string",
            "jump": "string",
            "starCount": 0,
            "forkCount": 0,
            "license": null,
            "name": "string",
            "belongName": null,
            "isSelected": 0,
            "id": "string",
            "avatarUrl": "string",
            "link": null,
            "profile": null,
            "projectNum": 0,
            "memberNum": 0,
            "warehouseList": [
                {
                    "jump": "string",
                    "warehouseName": "string"
                }
            ]
        }
    ]
}
上一页
首页-推荐-模版1
下一页
首页-组织
Built with