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

活动列表

开发中
GET
https://openatom.atomgit.com/api/activity/list

请求参数

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/activity/list' \
--header 'X-ATOMGIT-POP-COMMUNITY: openatom'

返回响应

🟢200成功
application/json
Body
code
integer 
必需
msg
string 
必需
data
array [object {13}] 
必需
atId
integer 
活动ID
必需
atName
string 
活动名称
必需
atUrl
string 
活动地址
必需
atTemplate
integer 
活动模板
必需
buttonText
string 
按钮模板
必需
jumpUrl
string 
跳转地址
必需
atType
integer 
活动类型
必需
atStartTime
string 
活动开始时间
必需
atEndTime
string 
活动结束时间
必需
sort
integer 
位置
必需
createTime
string 
创建时间
必需
status
integer 
状态
必需
进行中 未开始 已结束 已下线
location
null 
举办地址
必需
示例
{
    "code": 200,
    "msg": "成功",
    "data": [
        {
            "atId": 3,
            "atName": "10月开发者回顾",
            "atUrl": "",
            "atTemplate": 3,
            "buttonText": "了解详情",
            "jumpUrl": "https://baidu.com",
            "atType": 1,
            "atStartTime": "2024-08-01 00:00:21",
            "atEndTime": "2024-08-14 23:00:21",
            "sort": 3,
            "createTime": "2024-08-15 10:25:36",
            "communityId": 1,
            "status": 3
        },
        {
            "atId": 5,
            "atName": "10月开发者回顾",
            "atUrl": "",
            "atTemplate": 3,
            "buttonText": "了解详情",
            "jumpUrl": "https://baidu.com",
            "atType": 2,
            "atStartTime": "2024-08-17 00:00:21",
            "atEndTime": "2024-08-19 23:00:21",
            "sort": 3,
            "createTime": "2024-08-15 10:25:36",
            "communityId": 1,
            "status": 2
        },
        {
            "atId": 4,
            "atName": "10月开发者回顾",
            "atUrl": "",
            "atTemplate": 2,
            "buttonText": "了解详1情",
            "jumpUrl": "https://baidu.com",
            "atType": 3,
            "atStartTime": null,
            "atEndTime": null,
            "sort": 4,
            "createTime": "2024-08-15 10:26:32",
            "communityId": 1,
            "status": 1
        }
    ]
}
上一页
资讯模块
下一页
当前登录用户信息
Built with