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 new label.
See: Gmail API Reference for gmail.users.labels.create
.
Synopsis
- type UsersLabelsCreateResource = "gmail" :> ("v1" :> ("users" :> (Capture "userId" Text :> ("labels" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Label :> Post '[JSON] Label))))))
- usersLabelsCreate :: Label -> UsersLabelsCreate
- data UsersLabelsCreate
- ulcPayload :: Lens' UsersLabelsCreate Label
- ulcUserId :: Lens' UsersLabelsCreate Text
REST Resource
type UsersLabelsCreateResource = "gmail" :> ("v1" :> ("users" :> (Capture "userId" Text :> ("labels" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Label :> Post '[JSON] Label)))))) Source #
A resource alias for gmail.users.labels.create
method which the
UsersLabelsCreate
request conforms to.
Creating a Request
Creates a value of UsersLabelsCreate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data UsersLabelsCreate Source #
Creates a new label.
See: usersLabelsCreate
smart constructor.
Instances
Request Lenses
ulcPayload :: Lens' UsersLabelsCreate Label Source #
Multipart request metadata.