https://github.com/singer-io/tap-braintree
https://github.com/singer-io/tap-braintree
singer tap
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/singer-io/tap-braintree
- Owner: singer-io
- License: agpl-3.0
- Created: 2016-12-23T04:24:04.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2024-09-03T09:42:25.000Z (almost 2 years ago)
- Last Synced: 2025-04-05T02:06:28.917Z (about 1 year ago)
- Topics: singer, tap
- Language: Python
- Size: 137 KB
- Stars: 6
- Watchers: 12
- Forks: 26
- Open Issues: 19
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# tap-braintree
This is a [Singer](https://singer.io) tap that produces JSON-formatted data following the [Singer spec](https://github.com/singer-io/getting-started/blob/master/SPEC.md).
This tap:
- Pulls raw data from Braintree's REST API
- Extracts the following resources from Braintree
- Transactions
- Outputs the schema for each resource
- Incrementally pulls data based on the input state
## Quick start
1. Install
```bash
> pip install tap-braintree
```
2. Get your Public Key, Private Key, and Merchant ID
1. Sign into your Braintree account, Click Account > My User.
2. Scroll down to the API Keys, Tokenization Keys, Encryption Keys section and click View Authorizations.
3. In the API Keys section, click Generate New API Key.
4. After the key has been generated, click the View link in the Private Key column.
This will display the Client Library Key page, which contains your Braintree API credentials. You’ll need the Public Key, Private Key, and Merchant ID to complete your configuration.
3. Create the config file
Create a JSON file called `config.json` containing the Merchant ID, Public Key and Private Key.
```json
{"merchant_id": "your-merchant-id",
"public_key": "your-public-key",
"private_key": "your-private-key"}
```
4. [Optional] Create the initial state file
You can provide JSON file that contains a date for the API endpoints
to force the application to only fetch data newer than those dates.
If you omit the file it will fetch all Braintree data.
```json
{"transactions": "2017-01-17T20:32:05Z"}
```
5. Run the application
`tap-braintree` can be run with:
```bash
tap-braintree --config config.json [--state state.json]
```
---
Copyright © 2017 Stitch