REST Resource: edits.apks
Organiza tus páginas con colecciones
Guarda y categoriza el contenido según tus preferencias.
Recurso: APK
Información sobre un APK. El recurso para ApksService.
Representación JSON |
{
"versionCode": integer,
"binary": {
object (ApkBinary )
}
} |
Campos |
versionCode |
integer
Es el código de versión del APK, como se especifica en el archivo de manifiesto.
|
binary |
object (ApkBinary )
Información sobre la carga útil binaria de este APK.
|
ApkBinary
Representa la carga útil binaria de un APK.
Representación JSON |
{
"sha1": string,
"sha256": string
} |
Campos |
sha1 |
string
Un hash SHA1 de la carga útil del APK, codificado como una cadena hexadecimal y que coincide con el resultado del comando sha1sum.
|
sha256 |
string
Un hash sha256 de la carga útil del APK, codificado como una cadena hexadecimal y que coincide con el resultado del comando sha256sum.
|
Métodos |
|
Crea un APK nuevo sin subirlo a Google Play y, en su lugar, lo aloja en una URL especificada. |
|
Enumera todos los APK actuales de la app y edítalos. |
|
Sube un APK y lo agrega a la edición actual. |
Salvo que se indique lo contrario, el contenido de esta página está sujeto a la licencia Atribución 4.0 de Creative Commons, y los ejemplos de código están sujetos a la licencia Apache 2.0. Para obtener más información, consulta las políticas del sitio de Google Developers. Java es una marca registrada de Oracle o sus afiliados.
Última actualización: 2025-07-26 (UTC)
[null,null,["Última actualización: 2025-07-26 (UTC)"],[[["\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. |"]]