新闻客户端api
  1. 0-系统
新闻客户端api
  • 0-系统
    • 程序升级
      POST
  • 1-用户
    • profile
      POST
    • 注销
      POST
    • 登录
      POST
  • 2-新闻
    • 新闻分类
      GET
    • 新闻推荐
      GET
    • 新闻正文
      GET
    • 新闻翻页列表
      GET
    • 标签列表
      GET
    • 频道分类
      GET
  1. 0-系统

程序升级

POST
/app/update

请求参数

Header 参数
Content-Type
string 
必需
示例值:
application/json
Body 参数application/json
device
enum<string> 
必需
设备 ios android
枚举值:
iosandroid
channel
string 
必需
渠道 苹果店 华为店 小米店 各种APP平台
architecture
string 
必需
cpu架构 arm x86
model
string 
必需
机型 小米 HUAWEI OPPO
示例
{
    "device": "ios",
    "channel": "string",
    "architecture": "string",
    "model": "string"
}

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/app/update' \
--header 'Content-Type: application/json' \
--data-raw '{
    "device": "ios",
    "channel": "string",
    "architecture": "string",
    "model": "string"
}'

返回响应

🟢200成功
application/json
Body
shopUrl
enum<string> 
店铺链接
必需
枚举值:
https://apps.apple.com/cn/app/%E5%93%94%E5%93%A9%E5%93%94%E5%93%A9%E6%A6%82%E5%BF%B5/id1204090346
fileUrl
enum<string> 
文件下载链接
必需
枚举值:
https://yjy-oss-files.oss-cn-zhangjiakou.aliyuncs.com/apk/app-news-armeabi-v7a-release.apk
latestVersion
enum<string> 
最新的版本
必需
枚举值:
1.0.3
latestDescription
enum<string> 
更新说明
必需
枚举值:
1 加入了自动升级功能 2 动态授权存储权限 3 IOS 端支持 swift 语言
示例
{
    "shopUrl": "https://apps.apple.com/cn/app/%E5%93%94%E5%93%A9%E5%93%94%E5%93%A9%E6%A6%82%E5%BF%B5/id1204090346",
    "fileUrl": "https://yjy-oss-files.oss-cn-zhangjiakou.aliyuncs.com/apk/app-news-armeabi-v7a-release.apk",
    "latestVersion": "1.0.3",
    "latestDescription": "1 加入了自动升级功能 2 动态授权存储权限 3 IOS 端支持 swift 语言"
}
下一页
profile
Built with