Method: internalappsharingartifacts.uploadapk
อัปโหลด APK ไปยังการแชร์แอปภายใน หากคุณใช้ไลบรารีไคลเอ็นต์ Google API โปรดเพิ่มการหมดเวลาของคำขอ HTTP ก่อนเรียกใช้ปลายทางนี้ (แนะนำให้ใช้การหมดเวลา 2 นาที)
ดูตัวอย่างใน Java ได้ที่การหมดเวลาและข้อผิดพลาด
คำขอ HTTP
- URI การอัปโหลดสำหรับคำขออัปโหลดสื่อ:
POST https://androidpublisher.googleapis.com/upload/androidpublisher/v3/applications/internalappsharing/{packageName}/artifacts/apk
- URI ของข้อมูลเมตาสำหรับคำขอข้อมูลเมตาเท่านั้น
POST https://androidpublisher.googleapis.com/androidpublisher/v3/applications/internalappsharing/{packageName}/artifacts/apk
URL ใช้ไวยากรณ์การแปลง gRPC
พารามิเตอร์เส้นทาง
พารามิเตอร์ |
packageName |
string
ชื่อแพ็กเกจของแอป
|
เนื้อหาของคำขอ
เนื้อความของคำขอมีอินสแตนซ์ของ Media
เนื้อหาการตอบกลับ
หากทำสำเร็จ เนื้อหาการตอบกลับจะมีอินสแตนซ์ InternalAppSharingArtifact
ขอบเขตการให้สิทธิ์
ต้องใช้ขอบเขต 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 to internal app sharing for testing purposes within your organization."],["Requires a `packageName` to identify the application and uses a `Media` object for the APK file."],["Returns an `InternalAppSharingArtifact` object with details about the uploaded artifact upon successful completion."],["Utilizes the `androidpublisher` OAuth scope for authorization to access and manage your application."],["It's recommended to increase the HTTP request timeout when using Google API client libraries due to potential upload time."]]],["This document details uploading an APK for internal app sharing via two HTTP POST URIs, one for media uploads and one for metadata. The `packageName` is a required path parameter. Requests require an instance of `Media` in the body and will return an `InternalAppSharingArtifact` object upon success. The process necessitates the `https://www.googleapis.com/auth/androidpublisher` OAuth scope and suggests a 2-minute HTTP request timeout when using Google API client libraries.\n"]]