Method: apprecovery.create
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
צריך ליצור פעולה לשחזור האפליקציה עם סטטוס השחזור בתור DRAFT. לתשומת ליבכם: הפעולה הזו לא מפעילה את פעולת השחזור.
בקשת HTTP
POST https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/appRecoveries
בכתובת ה-URL נעשה שימוש בתחביר המרת קידוד של gRPC.
פרמטרים של נתיב
פרמטרים |
packageName |
string
חובה. שם החבילה של האפליקציה שבה מתבצעת פעולת השחזור.
|
גוף הבקשה
גוף הבקשה מכיל נתונים במבנה הבא:
ייצוג JSON |
{
"targeting": {
object (Targeting )
},
// Union field recovery_action can be only one of the following:
"remoteInAppUpdate": {
object (RemoteInAppUpdate )
}
// End of list of possible types for union field recovery_action .
} |
שדות |
targeting |
object (Targeting )
ההגדרה מציינת קריטריוני טירגוט לפעולת השחזור, כמו אזורים, גרסאות SDK ל-Android, גרסאות אפליקציה וכו'.
|
שדה איחוד recovery_action . סוג הפעולה לשחזור האפליקציה שצריך לבצע. חובה. recovery_action יכול להיות רק אחת מהאפשרויות הבאות: |
remoteInAppUpdate |
object (RemoteInAppUpdate )
סוג הפעולה הוא עדכון מרחוק בתוך האפליקציה. כתוצאה מפעולה זו, נוצר גם מודול שחזור שניתן להורדה למטרות בדיקה.
|
גוף התשובה
אם הפעולה בוצעה ללא שגיאות, גוף התגובה יכלול מופע חדש של AppRecoveryAction
.
היקפי ההרשאות
נדרש היקף ההרשאות הבא של OAuth:
https://www.googleapis.com/auth/androidpublisher
RemoteInAppUpdate
ייצוג של אובייקט לסוג הפעולה של עדכון בתוך האפליקציה 'מרחוק'.
ייצוג JSON |
{
"isRemoteInAppUpdateRequested": boolean
} |
שדות |
isRemoteInAppUpdateRequested |
boolean
חובה. יש להגדיר את הערך כ-True אם נדרשת פעולה מסוג 'עדכון בתוך האפליקציה מרחוק'.
|
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2024-08-29 (שעון 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-08-29 (שעון UTC)."],[[["Create a draft app recovery action to address issues within your app, without immediate execution."],["Define targeting criteria such as regions, Android versions, and app versions to control which users receive the recovery action."],["Specify the recovery action type, in this case, a remote in-app update, enabling you to deliver a downloadable recovery module to affected users."],["Utilize the provided HTTP request structure with the necessary path parameters and request body to initiate the draft creation."],["This action requires authorization with the `https://www.googleapis.com/auth/androidpublisher` scope."]]],["This document details creating an app recovery action using a POST request to `https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/appRecoveries`. The request requires the app's package name as a path parameter. The request body must include `targeting` criteria and specify the `recovery_action`, with the only supported type being `remoteInAppUpdate`. This sets the `isRemoteInAppUpdateRequest` field to `true`. Successful requests return an `AppRecoveryAction` instance, and the operation requires the `androidpublisher` OAuth scope.\n"]]