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.
See: Content API for Shopping Reference for content.products.insert
.
- type ProductsInsertResource = "content" :> ("v2" :> (Capture "merchantId" (Textual Word64) :> ("products" :> (QueryParam "dryRun" Bool :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Product :> Post '[JSON] Product))))))
- productsInsert :: Word64 -> Product -> ProductsInsert
- data ProductsInsert
- piMerchantId :: Lens' ProductsInsert Word64
- piPayload :: Lens' ProductsInsert Product
- piDryRun :: Lens' ProductsInsert (Maybe Bool)
REST Resource
type ProductsInsertResource = "content" :> ("v2" :> (Capture "merchantId" (Textual Word64) :> ("products" :> (QueryParam "dryRun" Bool :> (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.
See: productsInsert
smart constructor.
Request Lenses
piMerchantId :: Lens' ProductsInsert Word64 Source #
The ID of the managing account.