singer.io target for Retention Science data API
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
target_resci
.gitignore
LICENSE
MANIFEST.in
README.md
sample_config.json
setup.cfg
setup.py

README.md

target-resci

This is a Singer target that reads JSON-formatted data following the Singer spec.

Usage of this target assumes you have a Retention Science (ReSci) account and proper credentials. Please visit the ReSci Help Center or the ReSci Developer Portal for additional assistance.

Install

Requires Python 3

› pip install target-resci

Use

target-resci takes two types of input:

  1. A config file containing your ReSci credentials
  2. A stream of Singer-formatted data on stdin

Create config file to contain your ReSci api_key and site_id:

{
  "site_id" : 1234,
  "api_key" : "asdkjqbawsdciobasdpkjnqweobdclakjsdbcakbdsac",
  "import_type": "singer_import_config"
}

# Optional, used for testing:
"api_url": "http://test-api-url/v3/import_jobs"

Running

tap-some-api | target-resci --config config.json

where tap-some-api is Singer Tap.