This is a Singer tap that produces JSON-formatted data following the Singer spec.
This tap:
- Pulls raw data from Yotpo
- Extracts the following resources:
- Outputs the schema for each resource
Note: The product_reviews
endpoint is similar to the reviews
endpoint, but also contains custom fields specified for your Yotpo integration. Consider disabling this endpoint if you do not have or need custom fields in the output of this integration.
-
Install
$ pip install tap-yotpo
-
Get an API key
You can find your
api_key
andapi_secret
in your Yotpo settings. -
Create the config file
You must create a JSON configuration file that looks like this:
{ "start_date": "2015-01-01", "api_key": "...", "api_secret": "...", "email_stats_lookback_days": 30, "reviews_lookback_days": 30, "request_timeout": 300 }
The
start_date
parameter determines the starting date for incremental syncs. Theemail_stats_lookback_days
parameter is used to fetch updated email statistics (opens, clicks, etc) for emails sent by Yotpo. Thereviews_lookback_days
parameter is used to re-fetch reviews that have been updated (or deleted) since the last time they were synced. Therequest_timeout
is an optional parameter to set timeout for requests. Default: 300 seconds -
Run the Tap in Discovery Mode
$ tap-yotpo -c config.json -d
See the Singer docs on discovery mode here.
-
Run the Tap in Sync Mode
$ tap-yotpo -c config.json --catalog catalog-file.json
Copyright © 2022 Stitch