蒲公英文档中心

应用信息

获取与修改蒲公英 App 详细信息的接口,包含查看自己上传的应用、通过短链接获取 App 信息等。

本页介绍与 App 详细信息相关的接口,包括获取详情、修改详情、查看自己上传的应用,以及通过短链接获取 App 信息。

获取 App 详细信息

获取某个 App 某个具体版本的详细信息,返回值中同时包含该 App 的历史版本摘要。

POSThttps://www.pgyer.com/apiv2/app/view

请求参数

参数名类型必填说明
_api_keyStringAPI Key,请见 鉴权说明
appKeyStringappKey
buildKeyStringbuildKey

返回数据

应用详情字段:

参数类型说明
buildKeyStringBuild Key,唯一标识应用的索引 ID
buildTypeInteger应用类型(1:iOS; 2:Android)
buildIsFirstInteger是否是第一个 App(1:是; 2:否)
buildIsLastestInteger是否是最新版(1:是; 2:否)
buildFileSizeIntegerApp 文件大小
buildNameString应用名称
iconUrlString应用图标地址
buildVersionString版本号,默认为 1.0
buildVersionNoString上传包的版本编号,默认为 1
buildBuildVersionInteger蒲公英生成的用于区分历史版本的 build 号
buildIdentifierString应用程序包名,iOS 为 BundleId,Android 为包名
buildIconString应用 Icon 图标 key,访问地址为 https://cdn-app-icon2.pgyer.com/<buildIconPath>/<buildIcon>?x-oss-process=image/resize,m_lfit,h_120,w_120/format,jpg,buildIconPath 为 buildIcon 前 5 个字符用 / 连接
buildDescriptionString应用介绍
buildUpdateDescriptionString应用更新说明
buildScreenShotsString应用截图的 key,访问地址为 https://www.pgyer.com/image/view/app_screenshots/<screenshot_key>
buildScreenshotsUrlArray应用截图地址
buildShortcutUrlString应用短链接
buildCatesString应用分类,多个分类用 , 号隔开
buildQRCodeURLString应用二维码地址
buildCreatedString应用上传时间
buildUpdatedString应用更新时间
otherAppsArray历史版本列表,元素字段见下表
otherAppsCountInteger历史版本数量
todayDownloadCountInteger今日应用下载总次数
todayBuildDownloadCountInteger今日版本下载总次数

历史版本(otherApps 数组元素)字段:

参数类型说明
buildKeyStringBuild Key,唯一标识应用的索引 ID
buildNameString应用名称
buildVersionString版本号,默认为 1.0
buildBuildVersionInteger蒲公英生成的用于区分历史版本的 build 号
buildCreatedString应用上传时间
buildUpdatedString应用更新时间
{
  "code": 0,
  "message": "",
  "data": {
    "buildKey": "a1b2c3d4e5f6",
    "buildType": 2,
    "buildIsFirst": 2,
    "buildIsLastest": 1,
    "buildFileSize": 12345678,
    "buildName": "示例应用",
    "iconUrl": "https://cdn-app-icon2.pgyer.com/1/2/3/a/b/123abcdefaaa",
    "buildVersion": "1.1",
    "buildVersionNo": "28",
    "buildBuildVersion": 5,
    "buildIdentifier": "com.example.app",
    "buildIcon": "123abcdefaaa",
    "buildDescription": "示例介绍",
    "buildUpdateDescription": "修复若干问题",
    "buildScreenShots": "",
    "buildScreenshotsUrl": [],
    "buildShortcutUrl": "abcd",
    "buildCates": "工具,效率",
    "buildQRCodeURL": "https://www.pgyer.com/app/qrcode/abcd",
    "buildCreated": "2025-01-01 10:00:00",
    "buildUpdated": "2025-01-01 10:05:00",
    "otherApps": [
      {
        "buildKey": "a1b2c3d4e5f5",
        "buildName": "示例应用",
        "buildVersion": "1.0",
        "buildBuildVersion": 4,
        "buildCreated": "2024-12-01 10:00:00",
        "buildUpdated": "2024-12-01 10:05:00"
      }
    ],
    "otherAppsCount": 4,
    "todayDownloadCount": 12,
    "todayBuildDownloadCount": 8
  }
}

修改 App 详细信息(更新所有版本)

修改某个 App 的详细信息,对该 App 下的所有版本生效。

POSThttps://www.pgyer.com/apiv2/app/update

请求参数

参数名类型必填说明
_api_keyStringAPI Key,请见 鉴权说明
appKeyStringappKey
buildShortcutUrlString应用短链接地址
buildInstallTypeInteger应用安装方式(2:密码安装; 3:邀请安装)
buildPasswordString安装密码(buildInstallType 为 2 时使用)
appIsInstallDateInteger是否设置有效期(1:是; 2:否)
appInstallStartDateString有效期开始时间(appIsInstallDate 为 1 时使用)
appInstallEndDateString有效期结束时间(appIsInstallDate 为 1 时使用)
appLangInteger语言设置(1:中文; 2:英文; 3:自动)
buildVersionTypeIntegerBuild 版本号设置(1:使用蒲公英生成的自增 Build 版本号; 2:使用 App 本身的 Build 版本号)
appAutoSyncInteger是否自动同步 App 信息(1:是; 2:否)
appShowPgyerCopyrightInteger是否在安装页面显示蒲公英版权信息(1:是; 2:否)
buildQrcodeShowAppIconInteger二维码是否显示应用图标(1:是; 2:否)
appFeedbackStatusInteger是否开启反馈(1:是; 2:否)
buildTemplateString设置模版,可选值:classicfashiongraygreencolorful

返回数据

参数类型说明
buildKeyStringBuild Key,唯一标识应用的索引 ID
buildTypeInteger应用类型(1:iOS; 2:Android)
buildIsFirstInteger是否是第一个 App(1:是; 2:否)
buildIsLastestInteger是否是最新版(1:是; 2:否)
buildFileSizeIntegerApp 文件大小
buildNameString应用名称
buildPasswordString应用安装密码
buildVersionString版本号,默认为 1.0
buildVersionNoString上传包的版本编号,默认为 1
buildQrcodeShowAppIconInteger是否显示二维码中的图标(1:是; 2:否)
buildVersionTypeInteger是否使用蒲公英版本号(1:是; 2:否)
buildBuildVersionInteger蒲公英生成的用于区分历史版本的 build 号
buildIdentifierString应用程序包名,iOS 为 BundleId,Android 为包名
buildIconString应用 Icon 图标 key,访问地址为 https://cdn-app-icon2.pgyer.com/<buildIconPath>/<buildIcon>?x-oss-process=image/resize,m_lfit,h_120,w_120/format,jpg,buildIconPath 为 buildIcon 前 5 个字符用 / 连接
buildDescriptionString应用介绍
buildUpdateDescriptionString应用更新说明
buildScreenShotsString应用截图的 key,访问地址为 https://www.pgyer.com/image/view/app_screenshots/<screenshot_key>
buildShortcutUrlString应用短链接
buildIsAcceptFeedbackInteger是否开启反馈(1:是; 2:否)
buildTemplateString模版
buildInstallTypeInteger应用安装方式(2:密码安装; 3:邀请安装)
buildManuallyBlockedInteger是否被屏蔽(1:是; 2:否)
buildIsPlaceholderInteger是否是空应用(1:是; 2:否)
buildCreatedString应用上传时间
buildUpdatedString应用更新时间
buildQRCodeURLString应用二维码地址
isOwnerInteger是否是自己的应用(1:是; 2:否)
isJoinInteger是否是参与的应用(1:是; 2:否)
appExpiredDateStringApp 过期时间
appExpiredStatusInteger是否即将过期(1:是; 2:否)
otherAppsArray其他版本
otherAppsCountInteger版本数
todayDownloadCountInteger今日下载数
appKeyStringApp 组的 Key
appAutoSyncInteger是否同步应用市场(1:是; 2:否)
appShowPgyerCopyrightInteger是否显示蒲公英版权(1:是; 2:否)
appDownloadPayIntegerappDownloadPay 参数对应的金额或其含义
appDownloadDescriptionString应用下载说明
appLangInteger应用语言(1:中文; 2:英文; 3:自动)
appIsTestFlightInteger是否是 TestFlight 应用(1:是; 2:否)
appIsInstallDateInteger是否有安装时间限制(1:是; 2:否)
appInstallStartDateString安装开始时间
appInstallEndDateString安装结束时间
appFeedbackStatusInteger是否开启反馈(1:是; 2:否)
isMergedInteger是否已合并(1:是; 2:否)
mergeAppInfoArray合并的应用信息
{
  "code": 0,
  "message": "",
  "data": {
    "appKey": "x1y2z3",
    "buildKey": "a1b2c3d4e5f6",
    "buildType": 2,
    "buildName": "示例应用",
    "buildVersion": "1.1",
    "buildVersionNo": "28",
    "buildBuildVersion": 5,
    "buildIdentifier": "com.example.app",
    "buildInstallType": 2,
    "buildPassword": "123456",
    "buildShortcutUrl": "abcd",
    "buildTemplate": "classic",
    "appIsInstallDate": 1,
    "appInstallStartDate": "2025-01-01",
    "appInstallEndDate": "2025-12-31",
    "appLang": 1,
    "appFeedbackStatus": 1,
    "buildQrcodeShowAppIcon": 1,
    "buildCreated": "2025-01-01 10:00:00",
    "buildUpdated": "2025-01-01 10:05:00"
  }
}

上述示例仅列出常用字段,完整字段请见「字段说明」。

修改 App 详细信息(更新指定版本)

修改某个指定版本的 App 详细信息。

POSThttps://www.pgyer.com/apiv2/app/updateApp

请求参数

参数名类型必填说明
_api_keyStringAPI Key,请见 鉴权说明
userKeyString用户 Key,用来标识当前用户的身份。可在 API 信息页面中查看
buildKeyStringbuildKey
screenshotFile应用截图
buildShortcutUrlString应用短链接地址
buildUpdateDescriptionString应用更新说明。传值为空则更新为空
buildDescriptionString应用说明。传值为空则更新为空
buildPasswordString设置应用密码。传值为空则更新为空
buildVersionString版本号,默认为 1.0
buildInstallTypeInteger应用安装方式

返回数据

参数类型说明
buildKeyStringBuild Key,唯一标识应用的索引 ID
buildTypeInteger应用类型(1:iOS; 2:Android)
buildIsFirstInteger是否是第一个 App(1:是; 2:否)
buildIsLastestInteger是否是最新版(1:是; 2:否)
buildFileSizeIntegerApp 文件大小
buildNameString应用名称
buildVersionString版本号,默认为 1.0
buildVersionNoString上传包的版本编号,默认为 1
buildBuildVersionInteger蒲公英生成的用于区分历史版本的 build 号
buildIdentifierString应用程序包名,iOS 为 BundleId,Android 为包名
buildIconString应用 Icon 图标 key,访问地址为 https://cdn-app-icon2.pgyer.com/<buildIconPath>/<buildIcon>?x-oss-process=image/resize,m_lfit,h_120,w_120/format,jpg,buildIconPath 为 buildIcon 前 5 个字符用 / 连接
buildDescriptionString应用介绍
buildUpdateDescriptionString应用更新说明
buildScreenShotsString应用截图的 key,访问地址为 https://www.pgyer.com/image/view/app_screenshots/<screenshot_key>
buildShortcutUrlString应用短链接
buildCreatedString应用上传时间
buildUpdatedString应用更新时间
{
  "code": 0,
  "message": "",
  "data": {
    "buildKey": "a1b2c3d4e5f6",
    "buildType": 2,
    "buildIsFirst": 2,
    "buildIsLastest": 1,
    "buildFileSize": 12345678,
    "buildName": "示例应用",
    "buildVersion": "1.1",
    "buildVersionNo": "28",
    "buildBuildVersion": 5,
    "buildIdentifier": "com.example.app",
    "buildIcon": "123abcdefaaa",
    "buildDescription": "示例介绍",
    "buildUpdateDescription": "修复若干问题",
    "buildScreenShots": "",
    "buildShortcutUrl": "abcd",
    "buildCreated": "2025-01-01 10:00:00",
    "buildUpdated": "2025-01-01 10:05:00"
  }
}

通过短链接获取 App 信息

通过短链接查询对应 App 的基础信息。

POSThttps://www.pgyer.com/apiv2/app/getByShortcut

请求参数

参数名类型必填说明
_api_keyStringAPI Key,请见 鉴权说明
buildShortcutUrlString应用短链接。例如 pgyer.com/PgY8,只需传入 PgY8

返回数据

参数类型说明
buildKeyStringBuild Key,唯一标识应用的索引 ID
buildIsFirstInteger是否是第一个 App(1:是; 2:否)
buildIsLastestInteger是否是最新版(1:是; 2:否)
buildTypeInteger应用类型(1:iOS; 2:Android)
buildFileNameString上传的应用文件名
buildFileSizeIntegerApp 文件大小
buildNameString应用名称
buildVersionString版本号,默认为 1.0
buildVersionNoString上传包的版本编号,默认为 1
buildBuildVersionInteger蒲公英生成的用于区分历史版本的 build 号
buildIdentifierString应用程序包名,iOS 为 BundleId,Android 为包名
buildCreatedString应用上传时间
buildDescriptionString应用介绍
buildUpdateDescriptionString应用更新说明
buildShortcutUrlString应用短链接
buildScreenShotsString应用截图的 key,访问地址为 https://www.pgyer.com/image/view/app_screenshots/<screenshot_key>
{
  "code": 0,
  "message": "",
  "data": {
    "buildKey": "a1b2c3d4e5f6",
    "buildIsFirst": 2,
    "buildIsLastest": 1,
    "buildType": 2,
    "buildFileName": "app-release.apk",
    "buildFileSize": 12345678,
    "buildName": "示例应用",
    "buildVersion": "1.1",
    "buildVersionNo": "28",
    "buildBuildVersion": 5,
    "buildIdentifier": "com.example.app",
    "buildCreated": "2025-01-01 10:00:00",
    "buildDescription": "示例介绍",
    "buildUpdateDescription": "修复若干问题",
    "buildShortcutUrl": "PgY8",
    "buildScreenShots": ""
  }
}

查看自己上传的应用

分页获取当前账户下上传的应用列表。

POSThttps://www.pgyer.com/apiv2/app/listMy

请求参数

参数名类型必填说明
_api_keyStringAPI Key,请见 鉴权说明
pageInteger分页页数

返回数据

参数类型说明
buildKeyStringBuild Key,唯一标识应用的索引 ID
buildTypeInteger应用类型(1:iOS; 2:Android)
buildFileSizeIntegerApp 文件大小
buildNameString应用名称
buildVersionString版本号,默认为 1.0
buildVersionNoString上传包的版本编号,默认为 1
buildBuildVersionInteger蒲公英生成的用于区分历史版本的 build 号
buildIdentifierString应用程序包名,iOS 为 BundleId,Android 为包名
buildIconString应用 Icon 图标 key,访问地址为 https://cdn-app-icon2.pgyer.com/<buildIconPath>/<buildIcon>?x-oss-process=image/resize,m_lfit,h_120,w_120/format,jpg,buildIconPath 为 buildIcon 前 5 个字符用 / 连接
buildCreatedString应用上传时间
appKeyString表示一个 App 组的唯一 Key
{
  "code": 0,
  "message": "",
  "data": [
    {
      "buildKey": "a1b2c3d4e5f6",
      "buildType": 2,
      "buildFileSize": 12345678,
      "buildName": "示例应用",
      "buildVersion": "1.1",
      "buildVersionNo": "28",
      "buildBuildVersion": 5,
      "buildIdentifier": "com.example.app",
      "buildIcon": "123abcdefaaa",
      "buildCreated": "2025-01-01 10:00:00",
      "appKey": "x1y2z3"
    }
  ]
}

本页目录