REST Resource: edits.apks
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
- 资源:Apk
<ph type="x-smartling-placeholder">
- ApkBinary
<ph type="x-smartling-placeholder">
- 方法
资源:Apk
APK 的相关信息。ApksService 的资源。
JSON 表示法 |
{
"versionCode": integer,
"binary": {
object (ApkBinary )
}
} |
字段 |
versionCode |
integer
APK 的版本代码,在清单文件中指定。
|
binary |
object (ApkBinary )
有关此 APK 二进制载荷的信息。
|
ApkBinary
JSON 表示法 |
{
"sha1": string,
"sha256": string
} |
字段 |
sha1 |
string
APK 载荷的 sha1 哈希值编码为十六进制字符串,并与 sha1sum 命令的输出匹配。
|
sha256 |
string
APK 载荷的 sha256 哈希值编码为十六进制字符串,并与 sha256sum 命令的输出匹配。
|
方法 |
|
创建新的 APK,而无需将 APK 本身上传到 Google Play,而是将 APK 托管在指定网址。 |
|
列出应用当前的所有 APK 并进行修改。 |
|
上传 APK 并将其添加到当前修改中。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\u003cp\u003eThe \u003ccode\u003eApk\u003c/code\u003e resource provides information about an APK, including its version code and binary payload details.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eApkBinary\u003c/code\u003e represents the binary payload of an APK with SHA1 and SHA256 hashes for integrity verification.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can manage APKs using methods to upload, list, or add externally hosted APKs.\u003c/p\u003e\n"]]],["The provided content describes APK information and its binary payload. An APK's data includes its `versionCode` (an integer) and `binary`, which contains `sha1` and `sha256` hash strings for its payload. Key actions involve managing APKs through methods such as `addexternallyhosted` (creating an APK without direct upload), `list` (retrieving existing APKs), and `upload` (uploading an APK).\n"],null,["# REST Resource: edits.apks\n\n- [Resource: Apk](#Apk)\n - [JSON representation](#Apk.SCHEMA_REPRESENTATION)\n- [ApkBinary](#ApkBinary)\n - [JSON representation](#ApkBinary.SCHEMA_REPRESENTATION)\n- [Methods](#METHODS_SUMMARY)\n\nResource: Apk\n-------------\n\nInformation about an APK. The resource for ApksService.\n\n| JSON representation |\n|--------------------------------------------------------------------------------------------------------------------|\n| ``` { \"versionCode\": integer, \"binary\": { object (/android-publisher/api-ref/rest/v3/edits.apks#ApkBinary) } } ``` |\n\n| Fields ||\n|---------------|-------------------------------------------------------------------------------------------------------------------------------------|\n| `versionCode` | `integer` The version code of the APK, as specified in the manifest file. |\n| `binary` | `object (`[ApkBinary](/android-publisher/api-ref/rest/v3/edits.apks#ApkBinary)`)` Information about the binary payload of this APK. |\n\nApkBinary\n---------\n\nRepresents the binary payload of an APK.\n\n| JSON representation |\n|----------------------------------------------|\n| ``` { \"sha1\": string, \"sha256\": string } ``` |\n\n| Fields ||\n|----------|----------------------------------------------------------------------------------------------------------------------|\n| `sha1` | `string` A sha1 hash of the APK payload, encoded as a hex string and matching the output of the sha1sum command. |\n| `sha256` | `string` A sha256 hash of the APK payload, encoded as a hex string and matching the output of the sha256sum command. |\n\n| Methods ------- ||\n|----------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------|\n| ### [addexternallyhosted](/android-publisher/api-ref/rest/v3/edits.apks/addexternallyhosted) | Creates a new APK without uploading the APK itself to Google Play, instead hosting the APK at a specified URL. |\n| ### [list](/android-publisher/api-ref/rest/v3/edits.apks/list) | Lists all current APKs of the app and edit. |\n| ### [upload](/android-publisher/api-ref/rest/v3/edits.apks/upload) | Uploads an APK and adds to the current edit. |"]]