Method: users.settings.updatePop
Aktualizuje ustawienia POP.
Żądanie HTTP
PUT https://gmail.googleapis.com/gmail/v1/users/{userId}/settings/pop
Adres URL używa składni transkodowania gRPC.
Parametry ścieżki
Parametry |
userId |
string
Adres e-mail użytkownika. Specjalna wartość „ja” może służyć do wskazania uwierzytelnionego użytkownika.
|
Treść żądania
Treść żądania zawiera wystąpienie elementu PopSettings
.
Treść odpowiedzi
W przypadku powodzenia treść odpowiedzi obejmuje wystąpienie elementu PopSettings
.
Zakresy autoryzacji
Wymaga następującego zakresu OAuth:
https://www.googleapis.com/auth/gmail.settings.basic
Więcej informacji znajdziesz w przewodniku po autoryzacji.
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2024-09-05 UTC.
[null,null,["Ostatnia aktualizacja: 2024-09-05 UTC."],[[["Updates the POP settings of a Gmail user."],["Requires a `PUT` request to a specific Gmail API endpoint with the user's email address."],["The request body should contain the desired POP settings in JSON format based on the PopSettings resource."],["Successful execution will return the updated POP settings in the response body."],["Authorization requires the `https://www.googleapis.com/auth/gmail.settings.basic` scope."]]],["The core content describes how to update POP settings via a PUT HTTP request to `https://gmail.googleapis.com/gmail/v1/users/{userId}/settings/pop`. The `userId` path parameter, either an email or \"me\", specifies the user. The request body includes `PopSettings`, and a successful response also contains `PopSettings`. Authorization requires the `https://www.googleapis.com/auth/gmail.settings.basic` OAuth scope. This action allows users to modify their POP settings.\n"]]