| 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.Content.Products.Get
Description
Retrieves a product from your Merchant Center account.
See: Content API for Shopping Reference for content.products.get.
Synopsis
- type ProductsGetResource = "content" :> ("v2.1" :> (Capture "merchantId" (Textual Word64) :> ("products" :> (Capture "productId" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] Product)))))
- productsGet :: Word64 -> Text -> ProductsGet
- data ProductsGet
- pggMerchantId :: Lens' ProductsGet Word64
- pggProductId :: Lens' ProductsGet Text
REST Resource
type ProductsGetResource = "content" :> ("v2.1" :> (Capture "merchantId" (Textual Word64) :> ("products" :> (Capture "productId" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] Product))))) Source #
A resource alias for content.products.get method which the
ProductsGet request conforms to.
Creating a Request
Arguments
| :: Word64 | |
| -> Text | |
| -> ProductsGet |
Creates a value of ProductsGet with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProductsGet Source #
Retrieves a product from your Merchant Center account.
See: productsGet smart constructor.
Instances
Request Lenses
pggMerchantId :: Lens' ProductsGet Word64 Source #
The ID of the account that contains the product. This account cannot be a multi-client account.
pggProductId :: Lens' ProductsGet Text Source #
The REST id of the product.