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 |
Retrieves a list of notifications.
See: Admin Directory API Reference for directory.notifications.list
.
Synopsis
- type NotificationsListResource = "admin" :> ("directory" :> ("v1" :> ("customer" :> (Capture "customer" Text :> ("notifications" :> (QueryParam "language" Text :> (QueryParam "pageToken" Text :> (QueryParam "maxResults" (Textual Word32) :> (QueryParam "alt" AltJSON :> Get '[JSON] Notifications)))))))))
- notificationsList :: Text -> NotificationsList
- data NotificationsList
- nlCustomer :: Lens' NotificationsList Text
- nlLanguage :: Lens' NotificationsList (Maybe Text)
- nlPageToken :: Lens' NotificationsList (Maybe Text)
- nlMaxResults :: Lens' NotificationsList (Maybe Word32)
REST Resource
type NotificationsListResource = "admin" :> ("directory" :> ("v1" :> ("customer" :> (Capture "customer" Text :> ("notifications" :> (QueryParam "language" Text :> (QueryParam "pageToken" Text :> (QueryParam "maxResults" (Textual Word32) :> (QueryParam "alt" AltJSON :> Get '[JSON] Notifications))))))))) Source #
A resource alias for directory.notifications.list
method which the
NotificationsList
request conforms to.
Creating a Request
Creates a value of NotificationsList
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data NotificationsList Source #
Retrieves a list of notifications.
See: notificationsList
smart constructor.
Instances
Request Lenses
nlCustomer :: Lens' NotificationsList Text Source #
The unique ID for the customer's G Suite account.
nlLanguage :: Lens' NotificationsList (Maybe Text) Source #
The ISO 639-1 code of the language notifications are returned in. The default is English (en).
nlPageToken :: Lens' NotificationsList (Maybe Text) Source #
The token to specify the page of results to retrieve.
nlMaxResults :: Lens' NotificationsList (Maybe Word32) Source #
Maximum number of notifications to return per page. The default is 100.