This is a Singer tap that produces JSON-formatted data following the Singer spec.
This tap:
- Pulls raw data from the LoopReturns API
- Extracts the following resources:
- Outputs the schema for each resource
- Incrementally pulls data based on the input state
pip install tap-loopreturns
Copy sample_config.json to config.json and add the appropriate values.
api_key : the API key generated in your LoopReturns Admin
start_date : the date at which you want to start the data sync
end_date : the date at which you want to end the data pull only
user_agent : this entry is here for reference purposes
The end date parameter is only used on the first sync run. This allows you to pull a larger window of data when you first start out. This parameter will be overridden to be 24hours after the start date in subsequent runs.
tap-loopreturns -c config.json -d
See the Singer docs on discovery mode here.
# For the first sync
tap-loopreturns -c config.json --catalog catalog.json
# For subsequent syncs
tap-loopreturns -c config.json --catalog catalog.json --state state.json
See the Singer docs on sync mode here.
# run the tap in discovery mode and capture the catalog
tap-loopreturns -c config.json -d > catalog.json
# run the tap in sync mode to verify data flow
tap-loopreturns -c config.json --catalog catalog.json
# run the tap in sync mode to verify the next data step
tap-loopreturns -c config.json --catalog catalog.json --state.json
Copyright © 2020 Loop