Method: systemapks.variants.create
पहले से अपलोड किए गए Android ऐप्लिकेशन बंडल से, सिस्टम इमेज में शामिल करने के लिए एक APK बनाता है.
एचटीटीपी अनुरोध
POST https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/systemApks/{versionCode}/variants
यूआरएल में gRPC ट्रांसकोडिंग सिंटैक्स का इस्तेमाल किया गया है.
पाथ पैरामीटर
पैरामीटर |
packageName |
string
ऐप्लिकेशन का पैकेज नेम.
|
versionCode |
string (int64 format)
ऐप्लिकेशन बंडल का वर्शन कोड.
|
अनुरोध का मुख्य भाग
अनुरोध के मुख्य भाग में Variant
का उदाहरण है.
जवाब का मुख्य भाग
कामयाब रहने पर, जवाब के मुख्य हिस्से में Variant
का नया इंस्टेंस शामिल किया जाता है.
अनुमति के दायरे
नीचे दिए गए OAuth के लिंक की ज़रूरत हाेती है:
https://www.googleapis.com/auth/androidpublisher
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2024-12-17 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2024-12-17 (UTC) को अपडेट किया गया."],[[["Creates an APK file suitable for system images from an uploaded Android App Bundle."],["Uses an HTTP POST request to `https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/systemApks/{versionCode}/variants`."],["Requires specifying the package name and version code as path parameters."],["Request and response bodies utilize the `Variant` data structure."],["Needs authorization with the `https://www.googleapis.com/auth/androidpublisher` scope."]]],["This outlines the process of creating a system-ready APK from an uploaded Android App Bundle. It utilizes a `POST` HTTP request to a specific URL structure: `https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/systemApks/{versionCode}/variants`. The request requires `packageName` and `versionCode` path parameters. The request body uses the `Variant` resource, and a successful response returns a newly created `Variant` instance. The process requires `https://www.googleapis.com/auth/androidpublisher` authorization scope.\n"]]