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 |
Lists the drafts in the user's mailbox.
See: Gmail API Reference for gmail.users.drafts.list
.
Synopsis
- type UsersDraftsListResource = "gmail" :> ("v1" :> ("users" :> (Capture "userId" Text :> ("drafts" :> (QueryParam "q" Text :> (QueryParam "includeSpamTrash" Bool :> (QueryParam "pageToken" Text :> (QueryParam "maxResults" (Textual Word32) :> (QueryParam "alt" AltJSON :> Get '[JSON] ListDraftsResponse)))))))))
- usersDraftsList :: UsersDraftsList
- data UsersDraftsList
- udlQ :: Lens' UsersDraftsList (Maybe Text)
- udlUserId :: Lens' UsersDraftsList Text
- udlIncludeSpamTrash :: Lens' UsersDraftsList Bool
- udlPageToken :: Lens' UsersDraftsList (Maybe Text)
- udlMaxResults :: Lens' UsersDraftsList Word32
REST Resource
type UsersDraftsListResource = "gmail" :> ("v1" :> ("users" :> (Capture "userId" Text :> ("drafts" :> (QueryParam "q" Text :> (QueryParam "includeSpamTrash" Bool :> (QueryParam "pageToken" Text :> (QueryParam "maxResults" (Textual Word32) :> (QueryParam "alt" AltJSON :> Get '[JSON] ListDraftsResponse))))))))) Source #
A resource alias for gmail.users.drafts.list
method which the
UsersDraftsList
request conforms to.
Creating a Request
usersDraftsList :: UsersDraftsList Source #
Creates a value of UsersDraftsList
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data UsersDraftsList Source #
Lists the drafts in the user's mailbox.
See: usersDraftsList
smart constructor.
Instances
Request Lenses
udlQ :: Lens' UsersDraftsList (Maybe Text) Source #
Only return draft messages matching the specified query. Supports the same query format as the Gmail search box. For example, "from:someuser'example.com rfc822msgid: is:unread".
udlUserId :: Lens' UsersDraftsList Text Source #
The user's email address. The special value me can be used to indicate the authenticated user.
udlIncludeSpamTrash :: Lens' UsersDraftsList Bool Source #
Include drafts from SPAM and TRASH in the results.
udlPageToken :: Lens' UsersDraftsList (Maybe Text) Source #
Page token to retrieve a specific page of results in the list.
udlMaxResults :: Lens' UsersDraftsList Word32 Source #
Maximum number of drafts to return.