Class AuthorizationAction
Yetkilendirmeİşlemi
Tıklandığında kullanıcıyı AuthorizationUrl'ye gönderecek bir yetkilendirme işlemi.
CardService.newAuthorizationAction().setAuthorizationUrl('http://google.com/');
Ayrıntılı dokümanlar
setAuthorizationUrl(authorizationUrl)
Kullanıcının yetkilendirme isteminden yönlendirildiği yetkilendirme URL'sini ayarlar. Zorunlu.
Parametreler
Ad | Tür | Açıklama |
authorizationUrl | String | Ayarlanacak yetkilendirme URL'si. |
Return
AuthorizationAction
: Zincirleme için bu nesne.
Aksi belirtilmediği sürece bu sayfanın içeriği Creative Commons Atıf 4.0 Lisansı altında ve kod örnekleri Apache 2.0 Lisansı altında lisanslanmıştır. Ayrıntılı bilgi için Google Developers Site Politikaları'na göz atın. Java, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2024-12-22 UTC.
[null,null,["Son güncelleme tarihi: 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"]]