Method: users.stop
users.stop receiving push notifications for the given user mailbox.
HTTP isteği
POST https://gmail.googleapis.com/gmail/v1/users/{userId}/stop
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 gövdesi
Başarılı olursa yanıt metni boş bir JSON nesnesi olur.
Yetkilendirme kapsamları
Aşağıdaki OAuth kapsamlarından birini gerektirir:
https://mail.google.com/
https://www.googleapis.com/auth/gmail.modify
https://www.googleapis.com/auth/gmail.readonly
https://www.googleapis.com/auth/gmail.metadata
Daha fazla bilgi için Yetkilendirme kılavuzuna bakı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: 2025-03-14 UTC.
[null,null,["Son güncelleme tarihi: 2025-03-14 UTC."],[[["Stops users from receiving push notifications for a given user mailbox."],["Uses an HTTP POST request to `https://gmail.googleapis.com/gmail/v1/users/{userId}/stop`."],["Requires the `userId` path parameter, representing the user's email address."],["Needs authorization with specific OAuth scopes like `https://mail.google.com/` or `https://www.googleapis.com/auth/gmail.modify`."],["An empty request body is required, and a successful response results in an empty response body."]]],["This outlines how to stop a user from receiving push notifications via a POST request to `https://gmail.googleapis.com/gmail/v1/users/{userId}/stop`. The `userId`, representing the user's email or 'me', is a required path parameter. The request body must be empty. A successful request results in an empty response body. Authorization requires one of four specific OAuth scopes, such as `https://mail.google.com/` or `https://www.googleapis.com/auth/gmail.modify`.\n"]]