| 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 |
Network.Google.Resource.Books.Notification.Get
Description
Returns notification details for a given notification id.
See: Books API Reference for books.notification.get.
Synopsis
- type NotificationGetResource = "books" :> ("v1" :> ("notification" :> ("get" :> (QueryParam "notification_id" Text :> (QueryParam "locale" Text :> (QueryParam "source" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] Notification)))))))
- notificationGet :: Text -> NotificationGet
- data NotificationGet
- ngLocale :: Lens' NotificationGet (Maybe Text)
- ngNotificationId :: Lens' NotificationGet Text
- ngSource :: Lens' NotificationGet (Maybe Text)
REST Resource
type NotificationGetResource = "books" :> ("v1" :> ("notification" :> ("get" :> (QueryParam "notification_id" Text :> (QueryParam "locale" Text :> (QueryParam "source" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] Notification))))))) Source #
A resource alias for books.notification.get method which the
NotificationGet request conforms to.
Creating a Request
Arguments
| :: Text | |
| -> NotificationGet |
Creates a value of NotificationGet with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data NotificationGet Source #
Returns notification details for a given notification id.
See: notificationGet smart constructor.
Instances
Request Lenses
ngLocale :: Lens' NotificationGet (Maybe Text) Source #
ISO-639-1 language and ISO-3166-1 country code. Ex: 'en_US'. Used for generating notification title and body.
ngNotificationId :: Lens' NotificationGet Text Source #
String to identify the notification.