Method: users.settings.sendAs.verify
Wysyła e-maila weryfikacyjnego na podany alias adresu. Wymagany stan weryfikacji: pending
.
Ta metoda jest dostępna tylko dla klientów kont usługi, którym przyznano uprawnienia w całej domenie.
Żądanie HTTP
POST https://gmail.googleapis.com/gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}/verify
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.
|
sendAsEmail |
string
Alias „wyślij jako” do zweryfikowania.
|
Treść żądania
Treść żądania musi być pusta.
Treść odpowiedzi
Jeśli operacja się uda, treść odpowiedzi będzie pusta.
Zakresy autoryzacji
Wymaga następującego zakresu OAuth:
https://www.googleapis.com/auth/gmail.settings.sharing
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."],[[["Sends a verification email to a specified send-as alias address which must have a 'pending' verification status."],["This method is exclusively for service account clients that have been delegated domain-wide authority."],["The request is sent as a POST request to the specified URL with path parameters for user ID and send-as email address."],["Requires the `https://www.googleapis.com/auth/gmail.settings.sharing` OAuth scope for authorization."]]],["This content outlines how to send a verification email to a specified send-as alias in Gmail using the API. The core action is a `POST` request to `https://gmail.googleapis.com/gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}/verify`. The `userId` and `sendAsEmail` are specified as path parameters. No request body is required. A successful request returns an empty response. This operation is for service account clients with domain-wide authority, and requires the `https://www.googleapis.com/auth/gmail.settings.sharing` authorization scope.\n"]]