Method: edits.apks.upload
อัปโหลด APK และเพิ่มลงในฉบับแก้ไขปัจจุบัน
คำขอ HTTP
- URI การอัปโหลดสำหรับคำขออัปโหลดสื่อ:
POST https://androidpublisher.googleapis.com/upload/androidpublisher/v3/applications/{packageName}/edits/{editId}/apks
- URI ของข้อมูลเมตาสำหรับคำขอข้อมูลเมตาเท่านั้น
POST https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/edits/{editId}/apks
URL ใช้ไวยากรณ์การแปลง gRPC
พารามิเตอร์เส้นทาง
พารามิเตอร์ |
packageName |
string
ชื่อแพ็กเกจของแอป
|
editId |
string
ตัวระบุของการแก้ไข
|
เนื้อหาของคำขอ
เนื้อความของคำขอมีอินสแตนซ์ของ ApksUploadRequestBody
เนื้อหาการตอบกลับ
หากทำสำเร็จ เนื้อหาการตอบกลับจะมีอินสแตนซ์ Apk
ขอบเขตการให้สิทธิ์
ต้องใช้ขอบเขต OAuth ต่อไปนี้
https://www.googleapis.com/auth/androidpublisher
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2024-12-17 UTC
[null,null,["อัปเดตล่าสุด 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"]]