Method: edits.apks.upload
Hiermit wird ein APK hochgeladen und der aktuellen Version hinzugefügt.
HTTP-Anfrage
- Upload-URI für Anfragen zum Hochladen von Medien:
POST https://androidpublisher.googleapis.com/upload/androidpublisher/v3/applications/{packageName}/edits/{editId}/apks
- Metadaten-URI für Anfragen, die nur Metadaten enthalten:
POST https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/edits/{editId}/apks
Die URL verwendet die Syntax der gRPC-Transcodierung.
Pfadparameter
Parameter |
packageName |
string
Paketname der App.
|
editId |
string
Kennung der Änderung.
|
Anfragetext
Der Anfragetext enthält eine Instanz von ApksUploadRequestBody
.
Antworttext
Wenn der Vorgang erfolgreich abgeschlossen wurde, enthält der Antworttext eine Instanz von Apk
.
Autorisierungsbereiche
Erfordert den folgenden OAuth-Bereich:
https://www.googleapis.com/auth/androidpublisher
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2024-12-17 (UTC).
[null,null,["Zuletzt aktualisiert: 2024-12-17 (UTC)."],[[["Uploads an APK file to a specific edit of your Android app using either media upload or metadata-only requests."],["Requires providing the package name and edit ID as path parameters in the request URL."],["The request body should contain an `ApksUploadRequestBody` instance for the upload."],["A successful response will return an `Apk` object with details about the uploaded APK."],["You'll need the `https://www.googleapis.com/auth/androidpublisher` OAuth scope for authorization."]]],["The core actions involve uploading an APK to an application edit using `POST` requests. Two URIs are provided: one for media uploads and another for metadata-only. The URL requires `packageName` and `editId` path parameters. The request body utilizes `ApksUploadRequestBody`, while a successful response returns an `Apk` instance. This process mandates the `https://www.googleapis.com/auth/androidpublisher` OAuth scope for authorization.\n"]]