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 |
Uploads a product to your Merchant Center account. If an item with the same channel, contentLanguage, offerId, and targetCountry already exists, this method updates that entry.
See: Content API for Shopping Reference for content.products.insert
.
Synopsis
- type ProductsInsertResource = "content" :> ("v2.1" :> (Capture "merchantId" (Textual Word64) :> ("products" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Product :> Post '[JSON] Product)))))
- productsInsert :: Word64 -> Product -> ProductsInsert
- data ProductsInsert
- piiMerchantId :: Lens' ProductsInsert Word64
- piiPayload :: Lens' ProductsInsert Product
REST Resource
type ProductsInsertResource = "content" :> ("v2.1" :> (Capture "merchantId" (Textual Word64) :> ("products" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Product :> Post '[JSON] Product))))) Source #
A resource alias for content.products.insert
method which the
ProductsInsert
request conforms to.
Creating a Request
Creates a value of ProductsInsert
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProductsInsert Source #
Uploads a product to your Merchant Center account. If an item with the same channel, contentLanguage, offerId, and targetCountry already exists, this method updates that entry.
See: productsInsert
smart constructor.
Instances
Request Lenses
piiMerchantId :: Lens' ProductsInsert Word64 Source #
The ID of the account that contains the product. This account cannot be a multi-client account.
piiPayload :: Lens' ProductsInsert Product Source #
Multipart request metadata.