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 thread.
See: Gmail API Reference for gmail.users.threads.get
.
Synopsis
- type UsersThreadsGetResource = "gmail" :> ("v1" :> ("users" :> (Capture "userId" Text :> ("threads" :> (Capture "id" Text :> (QueryParam "format" UsersThreadsGetFormat :> (QueryParams "metadataHeaders" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] Thread))))))))
- usersThreadsGet :: Text -> UsersThreadsGet
- data UsersThreadsGet
- utgFormat :: Lens' UsersThreadsGet UsersThreadsGetFormat
- utgUserId :: Lens' UsersThreadsGet Text
- utgId :: Lens' UsersThreadsGet Text
- utgMetadataHeaders :: Lens' UsersThreadsGet [Text]
REST Resource
type UsersThreadsGetResource = "gmail" :> ("v1" :> ("users" :> (Capture "userId" Text :> ("threads" :> (Capture "id" Text :> (QueryParam "format" UsersThreadsGetFormat :> (QueryParams "metadataHeaders" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] Thread)))))))) Source #
A resource alias for gmail.users.threads.get
method which the
UsersThreadsGet
request conforms to.
Creating a Request
:: Text | |
-> UsersThreadsGet |
Creates a value of UsersThreadsGet
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data UsersThreadsGet Source #
Gets the specified thread.
See: usersThreadsGet
smart constructor.
Instances
Request Lenses
utgFormat :: Lens' UsersThreadsGet UsersThreadsGetFormat Source #
The format to return the messages in.
utgUserId :: Lens' UsersThreadsGet Text Source #
The user's email address. The special value me can be used to indicate the authenticated user.
utgMetadataHeaders :: Lens' UsersThreadsGet [Text] Source #
When given and format is METADATA, only include headers specified.