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 |
Gets the specified send-as alias. Fails with an HTTP 404 error if the specified address is not a member of the collection.
See: Gmail API Reference for gmail.users.settings.sendAs.get
.
Synopsis
- type UsersSettingsSendAsGetResource = "gmail" :> ("v1" :> ("users" :> (Capture "userId" Text :> ("settings" :> ("sendAs" :> (Capture "sendAsEmail" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] SendAs)))))))
- usersSettingsSendAsGet :: Text -> UsersSettingsSendAsGet
- data UsersSettingsSendAsGet
- ussagUserId :: Lens' UsersSettingsSendAsGet Text
- ussagSendAsEmail :: Lens' UsersSettingsSendAsGet Text
REST Resource
type UsersSettingsSendAsGetResource = "gmail" :> ("v1" :> ("users" :> (Capture "userId" Text :> ("settings" :> ("sendAs" :> (Capture "sendAsEmail" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] SendAs))))))) Source #
A resource alias for gmail.users.settings.sendAs.get
method which the
UsersSettingsSendAsGet
request conforms to.
Creating a Request
usersSettingsSendAsGet Source #
Creates a value of UsersSettingsSendAsGet
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data UsersSettingsSendAsGet Source #
Gets the specified send-as alias. Fails with an HTTP 404 error if the specified address is not a member of the collection.
See: usersSettingsSendAsGet
smart constructor.
Instances
Request Lenses
ussagUserId :: Lens' UsersSettingsSendAsGet Text Source #
User's email address. The special value "me" can be used to indicate the authenticated user.
ussagSendAsEmail :: Lens' UsersSettingsSendAsGet Text Source #
The send-as alias to be retrieved.