Class AuthorizationAction
AuthorizationAction
פעולת הרשאה שתשלח את המשתמש אל AuthorizationUrl כשלוחצים עליו.
CardService.newAuthorizationAction().setAuthorizationUrl('http://google.com/');
מסמכים מפורטים
setAuthorizationUrl(authorizationUrl)
הגדרת כתובת ה-URL של ההרשאה שאליה המשתמש מועבר מההנחיה להרשאה. חובה.
פרמטרים
שם | סוג | תיאור |
authorizationUrl | String | כתובת ה-URL להרשאה שרוצים להגדיר. |
חזרה
AuthorizationAction
– האובייקט הזה, לצורך קישור.
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2024-12-22 (שעון UTC).
[null,null,["עדכון אחרון: 2024-12-22 (שעון UTC)."],[[["`AuthorizationAction` enables sending users to a specified URL for authorization when clicked."],["It's created using `CardService.newAuthorizationAction()` and configured with `setAuthorizationUrl()`."],["The `setAuthorizationUrl()` method requires an authorization URL as a string parameter."],["`AuthorizationAction` provides a streamlined approach to initiating user authorization within Google Workspace add-ons."]]],["The `AuthorizationAction` object directs users to a specified URL when clicked. The core functionality involves using the `setAuthorizationUrl(authorizationUrl)` method to define this URL. This method requires a string parameter, `authorizationUrl`, which is the destination the user will be sent to. This method returns the `AuthorizationAction` object, allowing for method chaining. The `CardService.newAuthorizationAction()` creates the action to use with the `setAuthorizationUrl`.\n"]]