Updates a product.
Properties
|
Option |
Type |
Default |
Description |
|---|---|---|---|
|
|
string |
|
Mandatory field. Must be set to |
|
|
string |
|
Application name for Google Shopping API. |
|
|
string |
|
Name of a file which contains secrets for authentication. |
|
|
string |
|
ID of the merchant. |
Examples
Get a single product:
XML
<route>
<from uri="direct:start"/>
<setBody><constant>"{"productId":"32"}"</constant></setBody>
<to uri="pfx-google-shopping:insert?entity=product&merchantId=369094993&applicationName=pfx_test&secretFileName=''' + fileWithKey.absolutePath + '''"/>
<log message="Google shopping called! ${body}"/>
<to uri="mock:end"/>
</route>