This is a Singer tap that produces JSON-formatted data following the Singer spec.
This tap:
- Pulls raw data from the Density.io API
- Extracts the following resources:
- Outputs the schema for each resource
- Loops through existing spaces and incrementally pulls data based on the input state for the Space Events and Space Counts endpoints, as these are the only endpoints that support date filtering at the time of writing
-
Install
pip install tap-density
-
Create the config file
Create a JSON file called
config.json. Its contents should look like:{ "start_date": "2019-03-01T00:00:00.000Z", "api_key": "<Density.io API Key>", "site": "<Density.io Site>" }The
start_datespecifies the date at which the tap will begin pulling data (for those resources that support this).The
api_keyis the API key for your Density.io site.The
siteparameter represents the name of your specific Density.io site (e.g.{site}/spaces/) -
Run the Tap in Discovery Mode
tap-density --config config.json --discover
See the Singer docs on discovery mode here.
-
Run the Tap in Sync Mode
tap-density --config config.json --catalog catalog.json
Copyright © 2019 Stitch