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