蒲公英文档中心

应用信息

通过蒲公英 API 1.0 获取和修改 App 信息、通过短链接查询 App、查看自己上传应用的旧版接口说明。

本页为 API 1.0 旧版接口,仅供历史项目维护参考。新接入项目请优先使用 API 2.0 应用信息

获取 App 详细信息

该接口可以获取某个 App 的某个具体版本的详细信息。

POSThttp://api.pgyer.com/apiv1/app/view

请求参数

参数类型说明
aKeyStringApp Key 是唯一标识应用的索引 ID,可以通过短链接接口获取,或者我的应用接口获取。
uKeyString选填, 用户 Key
_api_keyStringAPI Key

返回数据

应用详情返回参数类型说明
appKeyStringApp Key
userKeyStringUser Key
appTypeInteger应用类型(1:iOS;2:Android)
appIsFirstInteger是否是第一个 App(1:是;2:否)
appIsLastestInteger是否是最新版(1:是;2:否)
appFileSizeIntegerApp 文件大小
appNameString应用名称
appVersionString版本号
appVersionNoInteger适用于 Android 的版本编号,iOS 始终为 0
appBuildVersionInteger蒲公英生成的用于区分历史版本的 build 号
appIdentifierString应用程序包名,iOS 为 Bundle ID,Android 为包名
appIconString应用的 Icon 图标 Key,访问地址为 https://www.pgyer.com/image/view/app_icons/[应用的 Icon 图标 Key]
appDescriptionString应用介绍
appUpdateDescriptionString应用更新说明
appScreenShotsString应用截图 Key,获取地址为 https://www.pgyer.com/image/view/app_screenshots/[应用截图 Key]
appShortcutUrlString应用短链接
appQRCodeURLString应用二维码地址
appCreatedString应用上传时间
appUpdatedString应用更新时间
历史版本返回参数类型说明
appKeyStringApp Key
userKeyStringUser Key
appNameString应用名称
appVersionString版本号
appBuildVersionInteger蒲公英生成的用于区分历史版本的 build 号
appCreatedString应用上传时间
appUpdatedString应用更新时间
应用反馈返回参数类型说明
userKeyIntegerUser Key
commentContentInteger反馈内容
commentImageKeysInteger反馈中的截图 Key,访问地址为:https://www.pgyer.com/image/view/comment_screenshot/[反馈中的截图 Key]
appBuildVersionInteger蒲公英生成的用于区分历史版本的 build 号
appIdentifierInteger应用程序包名,iOS 为 Bundle ID,Android 为包名
appCreatedInteger应用上传时间
appUpdatedInteger应用更新时间

修改 App 详细信息

POSThttp://api.pgyer.com/apiv1/app/update

请求参数

参数类型说明
aKeyStringApp Key 是唯一标识应用的索引 ID,可以通过短链接接口获取,或者我的应用接口获取。
uKeyString用户 Key
_api_keyStringAPI Key
appNameString选填,应用名称
appShortcutUrlString选填,应用短链接地址
appUpdateDescriptionString选填,传值为空则更新为空。应用更新说明
appDescriptionString选填,传值为空则更新为空。应用说明
appPasswordString选填,传值为空则更新为空。设置应用密码
appVersionString选填,应用版本信息
appScreenshotsString选填,传值为空则更新为空。应用截图 Key

返回数据

返回参数类型说明
appKeyStringApp Key
userKeyStringUser Key
appTypeInteger应用类型(1:iOS;2:Android)
appIsFirstInteger是否是第一个 App(1:是;2:否)
appIsLastestInteger是否是最新版(1:是;2:否)
appFileSizeIntegerApp 文件大小
appNameString应用名称
appVersionString版本号
appVersionNoInteger适用于 Android 的版本编号,iOS 始终为 0
appBuildVersionInteger蒲公英生成的用于区分历史版本的 build 号
appIdentifierString应用程序包名,iOS 为 Bundle ID,Android 为包名
appIconString应用的 Icon 图标 Key,访问地址为 https://www.pgyer.com/image/view/app_icons/[应用的 Icon 图标 Key]
appDescriptionString应用介绍
appUpdateDescriptionString应用更新说明
appScreenShotsString应用截图 Key,获取地址为 https://www.pgyer.com/image/view/app_screenshots/[应用截图 Key]
appShortcutUrlString应用短链接
appQRCodeURLString应用二维码地址
appCreatedString应用上传时间
appUpdatedString应用更新时间

使用短链接获取 App 信息

POSThttp://api.pgyer.com/apiv1/app/getAppKeyByShortcut

请求参数

参数类型说明
shortcutString应用短链接,例如 pgyer.com/PgY8,只需要传入 PgY8 参数即可
_api_keyStringAPI Key

返回数据

应用详情返回参数类型说明
appKeyString返回应用最新 build 的 App Key
appTypeInteger应用类型(1:iOS;2:Android)
appFileNameString上传的应用文件名
appFileSizeIntegerApp 文件大小
appNameString应用名称
appVersionString版本号
appVersionNoInteger适用于 Android 的版本编号,iOS 始终为 0
appBuildVersionInteger蒲公英生成的用于区分历史版本的 build 号
appIdentifierString应用程序包名,iOS 为 Bundle ID,Android 为包名
appCreatedString应用上传时间

查看自己上传的应用

POSThttp://api.pgyer.com/apiv1/user/listMyPublished

请求参数

参数类型说明
uKeyString用户 Key
pageInteger选填,填写数字页数
_api_keyStringAPI Key

返回数据

返回参数类型说明
appKeyString返回应用最新 build 的 App Key
appTypeInteger应用类型(1:iOS;2:Android)
appFileSizeIntegerApp 文件大小
appNameString应用名称
appVersionString版本号
appVersionNoInteger适用于 Android 的版本编号,iOS 始终为 0
appBuildVersionInteger蒲公英生成的用于区分历史版本的 build 号
appIdentifierString应用程序包名,iOS 为 Bundle ID,Android 为包名
appIconString应用的 Icon 图标 Key,访问地址为 https://www.pgyer.com/image/view/app_icons/[应用的 Icon 图标 Key]
appCreatedString应用上传时间

本页目录