Skip to content

Singer.io tap for extracting data from GoCardless.

License

Notifications You must be signed in to change notification settings

sendinblue/tap-gocardless

 
 

Repository files navigation

tap-gocardless

This is a Singer tap that produces JSON-formatted data following the Singer spec.

This tap:

Quick Start

Install the tap and helpers

python3 -m venv ~/.virtualenvs/tap-gocardless
source ~/.virtualenvs/tap-gocardless/bin/activate
pip3 install tap-gocardless https://github.com/chrisgoddard/singer-discover/archive/master.zip

Obtain an access token via https://developer.gocardless.com/getting-started/api/making-your-first-request/#creating-an-access-token

Create a config.gocardless.json file with the following

{
  "access_token": "sandbox_xxxxxx",
  "start_date": "2017-01-01T00:00:00.000Z",
  "user_agent": "<user-agent>"
}

Run the tap in Discover mode and select which data you would like to extract:

tap-gocardless --config config.gocardless.json --discover | singer-discover -o catalog.json

Run the tap in sync mode

tap-gocardless --config config.gocardless.json --catalog catalog.json

Run the tap with a target, e.g. postgres

tap-gocardless --config config.gocardless.json --catalog catalog.json | target-postgres --config config.postgres.json >> state.json
tail -1 state.json > state.json.tmp && mv state.json.tmp state.json

Copyright © 2021 @morrislaptop

About

Singer.io tap for extracting data from GoCardless.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%