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 |
Gets the status of a product from your Merchant Center account.
See: Content API for Shopping Reference for content.productstatuses.get
.
Synopsis
- type ProductstatusesGetResource = "content" :> ("v2.1" :> (Capture "merchantId" (Textual Word64) :> ("productstatuses" :> (Capture "productId" Text :> (QueryParams "destinations" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] ProductStatus))))))
- productstatusesGet :: Word64 -> Text -> ProductstatusesGet
- data ProductstatusesGet
- pgMerchantId :: Lens' ProductstatusesGet Word64
- pgDestinations :: Lens' ProductstatusesGet [Text]
- pgProductId :: Lens' ProductstatusesGet Text
REST Resource
type ProductstatusesGetResource = "content" :> ("v2.1" :> (Capture "merchantId" (Textual Word64) :> ("productstatuses" :> (Capture "productId" Text :> (QueryParams "destinations" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] ProductStatus)))))) Source #
A resource alias for content.productstatuses.get
method which the
ProductstatusesGet
request conforms to.
Creating a Request
Creates a value of ProductstatusesGet
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProductstatusesGet Source #
Gets the status of a product from your Merchant Center account.
See: productstatusesGet
smart constructor.
Instances
Request Lenses
pgMerchantId :: Lens' ProductstatusesGet Word64 Source #
The ID of the account that contains the product. This account cannot be a multi-client account.
pgDestinations :: Lens' ProductstatusesGet [Text] Source #
If set, only issues for the specified destinations are returned, otherwise only issues for the Shopping destination.
pgProductId :: Lens' ProductstatusesGet Text Source #
The REST id of the product.