יש לך 5 דקות? מענה ל
סקר קצר באינטרנט יעזור לנו לשפר את התיעוד של Google Workspace Marketplace.
Method: userLicense.get
מקבלת את סטטוס הרישוי של המשתמש לפי ההרשאה שלו להשתמש באפליקציה נתונה.
בקשת HTTP
GET https://appsmarket.googleapis.com/appsmarket/v2/userLicense/{applicationId}/{userId}
בכתובת ה-URL נעשה שימוש בתחביר המרת gRPC.
פרמטרים של נתיב
פרמטרים |
applicationId |
string
מזהה האפליקציה
|
userId |
string
User Id
|
גוף הבקשה
גוף הבקשה חייב להיות ריק.
גוף התגובה
אם הפעולה בוצעה ללא שגיאות, גוף התגובה יכלול מופע של UserLicense
.
היקפי הרשאות
נדרש היקף OAuth הבא:
https://www.googleapis.com/auth/appsmarketplace.license
למידע נוסף, ניתן לעיין במדריך ההרשאות.
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2023-12-01 (שעון UTC).
[null,null,["עדכון אחרון: 2023-12-01 (שעון UTC)."],[[["Retrieves a user's licensing status for a specific application to determine their usage permission."],["Utilizes a `GET` request with the application ID and user ID specified in the URL path."],["Requires authorization with the `https://www.googleapis.com/auth/appsmarketplace.license` scope."],["Returns a `UserLicense` object containing the user's license information upon successful request."]]],["This content describes how to retrieve a user's licensing status for an application. A `GET` request is made to `https://appsmarket.googleapis.com/appsmarket/v2/userLicense/{applicationId}/{userId}`, with the `applicationId` and `userId` specified as path parameters. The request body must be empty. A successful response returns a `UserLicense` object. Authorization requires the `https://www.googleapis.com/auth/appsmarketplace.license` OAuth scope.\n"]]