Method: internalappsharingartifacts.uploadbundle
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
מעלה App Bundle לשיתוף אפליקציות פנימי. אם משתמשים בספריות הלקוח של Google API, צריך להאריך את הזמן הקצוב לתפוגה של בקשת ה-http לפני שמפעילים את נקודת הקצה הזו (מומלץ להגדיר זמן קצוב לתפוגה של 2 דקות).
כדי לראות דוגמה ב-Java, אפשר לעיין בקטע זמן קצוב לתפוגה ושגיאות.
בקשת HTTP
- יש להעלות URI, עבור בקשות להעלאת מדיה:
POST https://androidpublisher.googleapis.com/upload/androidpublisher/v3/applications/internalappsharing/{packageName}/artifacts/bundle
- URI של מטא-נתונים, לבקשות למטא-נתונים בלבד:
POST https://androidpublisher.googleapis.com/androidpublisher/v3/applications/internalappsharing/{packageName}/artifacts/bundle
בכתובת ה-URL נעשה שימוש בתחביר המרת gRPC.
פרמטרים של נתיב
פרמטרים |
packageName |
string
שם החבילה של האפליקציה.
|
גוף הבקשה
גוף הבקשה מכיל מופע של Media
.
גוף התגובה
אם הפעולה בוצעה ללא שגיאות, גוף התגובה יכלול מופע של InternalAppSharingArtifact
.
היקפי הרשאות
נדרש היקף OAuth הבא:
https://www.googleapis.com/auth/androidpublisher
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-07-26 (שעון UTC).
[null,null,["עדכון אחרון: 2025-07-26 (שעון UTC)."],[[["\u003cp\u003eUploads an app bundle to internal app sharing using either a media upload or metadata-only request.\u003c/p\u003e\n"],["\u003cp\u003eRequires the \u003ccode\u003epackageName\u003c/code\u003e as a path parameter to specify the app.\u003c/p\u003e\n"],["\u003cp\u003eThe request body should contain an instance of \u003ccode\u003eMedia\u003c/code\u003e for the app bundle.\u003c/p\u003e\n"],["\u003cp\u003eA successful response returns an \u003ccode\u003eInternalAppSharingArtifact\u003c/code\u003e object with information about the uploaded artifact.\u003c/p\u003e\n"],["\u003cp\u003eUtilizes the \u003ccode\u003ehttps://www.googleapis.com/auth/androidpublisher\u003c/code\u003e OAuth scope for authorization.\u003c/p\u003e\n"]]],["This document details uploading an app bundle to internal app sharing. Key actions include sending a `POST` request to either a media upload or metadata URI, dependent on the type of request. The `packageName` is a required path parameter. The request body should be a `Media` instance. A successful response will contain an `InternalAppSharingArtifact` instance. OAuth scope `https://www.googleapis.com/auth/androidpublisher` is required for authorization. HTTP request timeouts of at least 2 minutes are recommended.\n"],null,["# Method: internalappsharingartifacts.uploadbundle\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nUploads an app bundle to internal app sharing. If you are using the Google API client libraries, please increase the timeout of the http request before calling this endpoint (a timeout of 2 minutes is recommended).\n\nSee [Timeouts and Errors](https://developers.google.com/api-client-library/java/google-api-java-client/errors) for an example in java.\n\n### HTTP request\n\n- Upload URI, for media upload requests: \n `POST https://androidpublisher.googleapis.com/upload/androidpublisher/v3/applications/internalappsharing/{packageName}/artifacts/bundle`\n- Metadata URI, for metadata-only requests: \n `POST https://androidpublisher.googleapis.com/androidpublisher/v3/applications/internalappsharing/{packageName}/artifacts/bundle`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|---------------|-----------------------------------|\n| `packageName` | `string` Package name of the app. |\n\n### Request body\n\nThe request body contains an instance of `Media`.\n\n### Response body\n\nIf successful, the response body contains an instance of [InternalAppSharingArtifact](/android-publisher/api-ref/rest/v3/internalappsharingartifacts#InternalAppSharingArtifact).\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/androidpublisher`"]]