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&amp;applicationName={{google.api.ie.appName}}&amp;secretFileName={{google.api.ie.secretFileName}}"/>

Deprecated:

<setBody> <groovy>[entries: body]</groovy> </setBody> <to uri="pfx-google-shopping:batch?entity=inventory&amp;applicationName={{google.api.ie.appName}}&amp;secretFileName={{google.api.ie.secretFileName}}"/>

Properties

Option

Type

Default

Description

Option

Type

Default

Description

entity

string

 

Mandatory field. Must be set to localinventory to be able to call this method.

applicationName

string

 

Application name for Google Shopping API.

secretFileName

 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&amp;applicationName=pfx_test&amp;secretFileName=''' + fileWithKey.absolutePath + '''"/> <log message="${body}"/> <log message="Google shopping called!"/> <to uri="mock:end"/> </route>

IntegrationManager version 5.8.0