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 משתמשת בתחביר של Transcoding של gRPC.
פרמטרים של נתיב
פרמטרים |
packageName |
string
שם החבילה של האפליקציה.
|
editId |
string
המזהה של העריכה.
|
apkVersionCode |
integer
קוד הגירסה של קובץ ה-APK שהתצורה של קובץ ההרחבה שלו נקראת או משתנה.
|
expansionFileType |
enum (ExpansionFileType )
סוג הקובץ של קובץ התצורה של קובץ ההרחבה שמתעדכן.
|
גוף הבקשה
גוף הבקשה מכיל מופע של ExpansionFilesUploadRequestBody
.
גוף התשובה
תגובה להעלאת קובץ הרחבה.
אם הפעולה מצליחה, גוף התגובה מכיל נתונים במבנה הבא:
שדות |
expansionFile |
object (ExpansionFile )
הגדרת קובץ ההרחבות שהועלה.
|
היקפי הרשאה
נדרש היקף הרשאות OAuth הבא:
https://www.googleapis.com/auth/androidpublisher
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 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"]]