Copyright | (c) 2015-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Creates a custom "from" send-as alias. If an SMTP MSA is specified, Gmail will attempt to connect to the SMTP service to validate the configuration before creating the alias. If ownership verification is required for the alias, a message will be sent to the email address and the resource's verification status will be set to pending; otherwise, the resource will be created with verification status set to accepted. If a signature is provided, Gmail will sanitize the HTML before saving it with the alias. This method is only available to service account clients that have been delegated domain-wide authority.
See: Gmail API Reference for gmail.users.settings.sendAs.create
.
Synopsis
- type UsersSettingsSendAsCreateResource = "gmail" :> ("v1" :> ("users" :> (Capture "userId" Text :> ("settings" :> ("sendAs" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] SendAs :> Post '[JSON] SendAs)))))))
- usersSettingsSendAsCreate :: SendAs -> UsersSettingsSendAsCreate
- data UsersSettingsSendAsCreate
- ussacPayload :: Lens' UsersSettingsSendAsCreate SendAs
- ussacUserId :: Lens' UsersSettingsSendAsCreate Text
REST Resource
type UsersSettingsSendAsCreateResource = "gmail" :> ("v1" :> ("users" :> (Capture "userId" Text :> ("settings" :> ("sendAs" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] SendAs :> Post '[JSON] SendAs))))))) Source #
A resource alias for gmail.users.settings.sendAs.create
method which the
UsersSettingsSendAsCreate
request conforms to.
Creating a Request
usersSettingsSendAsCreate Source #
Creates a value of UsersSettingsSendAsCreate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data UsersSettingsSendAsCreate Source #
Creates a custom "from" send-as alias. If an SMTP MSA is specified, Gmail will attempt to connect to the SMTP service to validate the configuration before creating the alias. If ownership verification is required for the alias, a message will be sent to the email address and the resource's verification status will be set to pending; otherwise, the resource will be created with verification status set to accepted. If a signature is provided, Gmail will sanitize the HTML before saving it with the alias. This method is only available to service account clients that have been delegated domain-wide authority.
See: usersSettingsSendAsCreate
smart constructor.
Instances
Request Lenses
ussacPayload :: Lens' UsersSettingsSendAsCreate SendAs Source #
Multipart request metadata.
ussacUserId :: Lens' UsersSettingsSendAsCreate Text Source #
User's email address. The special value "me" can be used to indicate the authenticated user.