Method: internalappsharingartifacts.uploadapk
संगठन में काम करने वालों के साथ ऐप्लिकेशन शेयर करने की सुविधा में APK अपलोड करता है. अगर Google API क्लाइंट लाइब्रेरी का इस्तेमाल किया जा रहा है, तो इस एंडपॉइंट को कॉल करने से पहले, कृपया http अनुरोध के टाइम आउट को बढ़ाएं. हमारा सुझाव है कि आप टाइम आउट को दो मिनट पर सेट करें.
java में उदाहरण के लिए, टाइम आउट और गड़बड़ियां देखें.
एचटीटीपी अनुरोध
- मीडिया अपलोड करने के अनुरोधों के लिए, अपलोड यूआरआई:
POST https://androidpublisher.googleapis.com/upload/androidpublisher/v3/applications/internalappsharing/{packageName}/artifacts/apk
- सिर्फ़ मेटाडेटा के अनुरोधों के लिए मेटाडेटा यूआरआई:
POST https://androidpublisher.googleapis.com/androidpublisher/v3/applications/internalappsharing/{packageName}/artifacts/apk
यूआरएल में gRPC ट्रांसकोडिंग सिंटैक्स का इस्तेमाल किया गया है.
पाथ पैरामीटर
पैरामीटर |
packageName |
string
ऐप्लिकेशन का पैकेज नेम.
|
अनुरोध का मुख्य भाग
अनुरोध के मुख्य भाग में Media
का उदाहरण है.
जवाब का मुख्य भाग
कामयाब रहने पर, जवाब के मुख्य हिस्से में InternalAppSharingArtifact
का एक इंस्टेंस शामिल किया जाता है.
अनुमति के दायरे
नीचे दिए गए 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) को अपडेट किया गया."],[[["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"]]