Method: users.settings.getAutoForwarding
Belirtilen hesap için otomatik yönlendirme ayarını alır.
HTTP isteği
GET https://gmail.googleapis.com/gmail/v1/users/{userId}/settings/autoForwarding
URL, gRPC Kod Dönüştürme söz dizimini kullanır.
Yol parametreleri
Parametreler |
userId |
string
Kullanıcının e-posta adresi. Kimliği doğrulanmış kullanıcıyı belirtmek için "me" özel değeri kullanılabilir.
|
İstek içeriği
İstek metni boş olmalıdır.
Yanıt metni
Başarılıysa yanıt metni, AutoForwarding
öğesinin bir örneğini içerir.
Yetkilendirme kapsamları
Aşağıdaki OAuth kapsamlarından birini gerektirir:
https://www.googleapis.com/auth/gmail.settings.basic
https://mail.google.com/
https://www.googleapis.com/auth/gmail.modify
https://www.googleapis.com/auth/gmail.readonly
Daha fazla bilgi için Yetkilendirme kılavuzuna göz atın.
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-09-05 UTC.
[null,null,["Son güncelleme tarihi: 2024-09-05 UTC."],[[["This API retrieves the auto-forwarding configuration for a specific Gmail account."],["It uses an HTTP GET request with the user's email address as a path parameter."],["An empty request body is required, and the response provides an AutoForwarding object containing the settings."],["Authorization is necessary using one of the specified OAuth scopes related to Gmail settings or access."]]],["This API retrieves the auto-forwarding settings for a specified Gmail account. It uses a `GET` request to `https://gmail.googleapis.com/gmail/v1/users/{userId}/settings/autoForwarding`, where `userId` is the user's email or \"me\". The request body must be empty. A successful request returns an `AutoForwarding` instance in the response. Authorization requires one of four specified OAuth scopes: `gmail.settings.basic`, `mail.google.com`, `gmail.modify`, or `gmail.readonly`.\n"]]