Method: edits.expansionfiles.upload
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
อัปโหลดไฟล์สำหรับขยายใหม่และแนบไปกับ APK ที่ระบุ
คำขอ HTTP
- URI การอัปโหลดสำหรับคำขออัปโหลดสื่อ:
POST https://androidpublisher.googleapis.com/upload/androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}
- URI ของข้อมูลเมตาสำหรับคำขอข้อมูลเมตาเท่านั้น
POST https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}
URL ใช้ไวยากรณ์การแปลง gRPC
พารามิเตอร์เส้นทาง
พารามิเตอร์ |
packageName |
string
ชื่อแพ็กเกจของแอป
|
editId |
string
ตัวระบุของการแก้ไข
|
apkVersionCode |
integer
รหัสเวอร์ชันของ APK ที่กำลังอ่านหรือแก้ไขการกำหนดค่าไฟล์สำหรับขยาย
|
expansionFileType |
enum (ExpansionFileType )
ประเภทไฟล์ของการกำหนดค่าไฟล์เสริมที่อัปเดต
|
เนื้อหาของคำขอ
เนื้อความของคำขอมีอินสแตนซ์ของ ExpansionFilesUploadRequestBody
เนื้อหาการตอบกลับ
การตอบกลับสำหรับการอัปโหลดไฟล์ส่วนขยาย
หากทำสำเร็จ เนื้อหาการตอบกลับจะมีข้อมูลซึ่งมีโครงสร้างดังต่อไปนี้
ช่อง |
expansionFile |
object (ExpansionFile )
การกําหนดค่าไฟล์ส่วนขยายที่อัปโหลด
|
ขอบเขตการให้สิทธิ์
ต้องใช้ขอบเขต OAuth ต่อไปนี้
https://www.googleapis.com/auth/androidpublisher
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2024-12-17 UTC
[[["เข้าใจง่าย","easyToUnderstand","thumb-up"],["แก้ปัญหาของฉันได้","solvedMyProblem","thumb-up"],["อื่นๆ","otherUp","thumb-up"]],[["ไม่มีข้อมูลที่ฉันต้องการ","missingTheInformationINeed","thumb-down"],["ซับซ้อนเกินไป/มีหลายขั้นตอนมากเกินไป","tooComplicatedTooManySteps","thumb-down"],["ล้าสมัย","outOfDate","thumb-down"],["ปัญหาเกี่ยวกับการแปล","translationIssue","thumb-down"],["ตัวอย่าง/ปัญหาเกี่ยวกับโค้ด","samplesCodeIssue","thumb-down"],["อื่นๆ","otherDown","thumb-down"]],["อัปเดตล่าสุด 2024-12-17 UTC"],[[["Uploads a new expansion file and attaches it to a specified Android application package (APK)."],["Requires providing package name, edit ID, APK version code, and expansion file type."],["Supports two request types: one for uploading media and another for metadata."],["Upon successful upload, the API returns the uploaded expansion file configuration details."],["Needs authorization with the `https://www.googleapis.com/auth/androidpublisher` scope."]]],["This document details how to upload an expansion file to an Android app. Key actions include sending a `POST` HTTP request to either a media or metadata URI, specifying `packageName`, `editId`, `apkVersionCode`, and `expansionFileType` as path parameters. The request body, an `ExpansionFilesUploadRequestBody` instance, is used for uploading. A successful response includes an `ExpansionFile` object within a JSON structure. The process requires the `androidpublisher` authorization scope.\n"]]