GithubHelp home page GithubHelp logo

isabella232 / tap-woocommerce Goto Github PK

View Code? Open in Web Editor NEW

This project forked from singer-io/tap-woocommerce

0.0 0.0 0.0 27 KB

Singer.io tap for WooCommerce API

License: GNU Affero General Public License v3.0

Python 100.00%

tap-woocommerce's Introduction

tap-woocommerce

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

This tap:

  • Pulls raw data from WooCommerce
  • Extracts the following resources:
  • Outputs the schema for each resource
  • Incrementally pulls data based on the input state

Usage:

  1. Create Config file from sample-config.json
{
  "url":"https://example.com/",
  "consumer_key":"ck_woocommerce",
  "consumer_secret":"cs_woocommerce",
  "start_date":"ISO8601-Date-String"
}
  • the consumer key and consumer secret will be needed to be generated from within woocommerce settings > api > api keys
  • start date will determine how far back in your order history the tap will go
    • this is only relevant for the initial run, progress afterwards will be bookmarked
  1. Discover
$tap-woocommerce --config config.json --discover >> catalog.json
  • Run the above to discover the data points the tap supports for each of Woocommerce's endpoints (currently only List-Orders)
  1. Select Streams
    {
       "schema": {
            "properties": {...},
            "type": "object",
            "selected": true
        },
        "stream": "orders",
        "tap_stream_id": "orders"
    }
  • Add "selected":true within the schema object to select the stream

4.Run the tap

$tap-woocommerce --config config.json --catalog catalog.json

5.Run with Stitch Target

  • Install target
pip install target-stitch
  • Create Config
{
  "client_id" : your_stitch_id,
  "token" : "your_stitch_token"
}
  • Run tap with target
tap-woocommerce --config config.json --catalog catalog.json | target-stitch --config target-config.json

Copyright © 2018 Stitch

tap-woocommerce's People

Contributors

dmosorast avatar nick-mccoy avatar yalelikeyale avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.