Method: users.settings.sendAs.verify
Sendet eine Bestätigungs-E-Mail an die angegebene Sende-als-Alias-Adresse. Der Bestätigungsstatus muss pending
sein.
Diese Methode ist nur für Dienstkontoclients verfügbar, denen domainweite Befugnisse delegiert wurden.
HTTP-Anfrage
POST https://gmail.googleapis.com/gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}/verify
Die URL verwendet die Syntax der gRPC-Transcodierung.
Pfadparameter
Parameter |
userId |
string
E-Mail-Adresse des Nutzers. Mit dem speziellen Wert „me“ kann der authentifizierte Nutzer angegeben werden.
|
sendAsEmail |
string
Der zu bestätigende Alias „Senden als“.
|
Anfragetext
Der Anfragetext muss leer sein.
Antworttext
Wenn der Vorgang erfolgreich ist, ist der Antworttext leer.
Autorisierungsbereiche
Erfordert den folgenden OAuth-Bereich:
https://www.googleapis.com/auth/gmail.settings.sharing
Weitere Informationen finden Sie im Leitfaden zur Autorisierung.
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2024-09-05 (UTC).
[null,null,["Zuletzt aktualisiert: 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"]]