pfx-google-shopping:batch (localinventory)
Gets a local inventory.
Deprecation Notice (as of March 28, 2021)
Google API was migrated to v2.1. Along with this change, the inventory
 method was renamed to localinventory
:
<setBody>
<groovy>[entries: body]</groovy>
</setBody>
<to uri="pfx-google-shopping:batch?entity=localinventory&applicationName={{google.api.ie.appName}}&secretFileName={{google.api.ie.secretFileName}}"/>
Deprecated:
<setBody>
<groovy>[entries: body]</groovy>
</setBody>
<to uri="pfx-google-shopping:batch?entity=inventory&applicationName={{google.api.ie.appName}}&secretFileName={{google.api.ie.secretFileName}}"/>
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. |
Examples
Get local inventory:
<route>
<from uri="direct:start"/>
<to uri="pfx-google-shopping:batch?entity=localinventory&applicationName=pfx_test&secretFileName=''' + fileWithKey.absolutePath + '''"/>
<log message="${body}"/>
<log message="Google shopping called!"/>
<to uri="mock:end"/>
</route>
IntegrationManager version 5.8.0