Google משתמשת בטכנולוגיית AI כדי לתרגם תוכן לשפה המועדפת עליך. בתרגומים כאלו עשויות להיות שגיאות.
Method: grants.create
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
הענקת גישה למשתמש לחבילה הנתונה.
בקשת HTTP
POST https://androidpublisher.googleapis.com/androidpublisher/v3/{parent=developers/*/users/*}/grants
בכתובת ה-URL נעשה שימוש בתחביר המרת gRPC.
פרמטרים של נתיב
| פרמטרים |
parent |
string
חובה. המשתמש שזקוק להרשאה. פורמט: Developers/{developer}/users/{user}
|
גוף הבקשה
גוף הבקשה מכיל מופע של Grant.
גוף התגובה
אם הפעולה בוצעה ללא שגיאות, גוף התגובה יכלול מופע חדש של Grant שנוצר.
היקפי הרשאות
נדרש היקף OAuth הבא:
https://www.googleapis.com/auth/androidpublisher
[null,null,["עדכון אחרון: 2025-07-26 (שעון UTC)."],[],["A `POST` request is sent to `https://androidpublisher.googleapis.com/androidpublisher/v3/{parent=developers/*/users/*}/grants` to grant user access to a package. The `parent` path parameter, formatted as `developers/{developer}/users/{user}`, specifies the user receiving permission. The request body includes a `Grant` instance, and a successful response returns a new `Grant` instance. Authorization requires the `https://www.googleapis.com/auth/androidpublisher` OAuth scope. The URL follows gRPC Transcoding syntax.\n"]]