上传文件到 AGC
agc_upload_fileUpload local files (APK, AAB, icons, screenshots, videos, PDFs, Zips) to AGC file server and retrieve an objectId, which is then used to link the file to your app via other AGC APIs.
Instructions
把本地文件(软件包 .app/.apk/.aab/.rpk、图标、截图、视频、PDF、资质 zip 等)上传到 AGC 文件服务器,返回 objectId。得到 objectId 后需调用相应接口(如 agc_update_app_package,或通过 agc_request 调用更新应用文件信息接口)把文件关联到应用。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| appId | Yes | ||
| fileName | No | 上报的文件名(含后缀),默认取本地文件名 | |
| filePath | Yes | 本地文件绝对路径(支持 ~/ 开头) | |
| releaseType | No | 发布方式,默认 1(全网) | |
| chineseMainlandFlag | No | 软件包是否分发中国大陆:1 是 / 0 否。开发者注册地非中国大陆时必填 |