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 |
Returns a list of promo offers available to the user
See: Books API Reference for books.promooffer.get
.
Synopsis
- type PromoOfferGetResource = "books" :> ("v1" :> ("promooffer" :> ("get" :> (QueryParam "manufacturer" Text :> (QueryParam "serial" Text :> (QueryParam "device" Text :> (QueryParam "model" Text :> (QueryParam "product" Text :> (QueryParam "androidId" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] Offers))))))))))
- promoOfferGet :: PromoOfferGet
- data PromoOfferGet
- pogManufacturer :: Lens' PromoOfferGet (Maybe Text)
- pogSerial :: Lens' PromoOfferGet (Maybe Text)
- pogDevice :: Lens' PromoOfferGet (Maybe Text)
- pogModel :: Lens' PromoOfferGet (Maybe Text)
- pogProduct :: Lens' PromoOfferGet (Maybe Text)
- pogAndroidId :: Lens' PromoOfferGet (Maybe Text)
REST Resource
type PromoOfferGetResource = "books" :> ("v1" :> ("promooffer" :> ("get" :> (QueryParam "manufacturer" Text :> (QueryParam "serial" Text :> (QueryParam "device" Text :> (QueryParam "model" Text :> (QueryParam "product" Text :> (QueryParam "androidId" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] Offers)))))))))) Source #
A resource alias for books.promooffer.get
method which the
PromoOfferGet
request conforms to.
Creating a Request
promoOfferGet :: PromoOfferGet Source #
Creates a value of PromoOfferGet
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data PromoOfferGet Source #
Returns a list of promo offers available to the user
See: promoOfferGet
smart constructor.
Instances
Request Lenses
pogManufacturer :: Lens' PromoOfferGet (Maybe Text) Source #
device manufacturer
pogProduct :: Lens' PromoOfferGet (Maybe Text) Source #
device product
pogAndroidId :: Lens' PromoOfferGet (Maybe Text) Source #
device android_id