0.2.0 • Published 6 years ago

gatsby-source-woocommerce v0.2.0

Weekly downloads
8
License
ISC
Repository
-
Last release
6 years ago

gatsby-source-woocommerce

Source plugin for Gatsby. Pulls in data from protected routes via the WooCommerce REST API with credentials.

Install

npm install --save gatsby-source-woocommerce

How to Use

// In gatsby-config.js
plugins:[
  {       
    resolve: "gatsby-source-woocommerce",
    options: {
	   // Base URL of Wordpress site
      api: 'wordpress.domain',
      // true if using https. false if nah.
      https: false,
      api_keys: {
        consumer_key: <key>,
        consumer_secret: <secret>,
      },
      // Array of strings with fields you'd like to create nodes for...
      fields: ['products']
    }
  }
]

Currently Supported Fields

  • Products
  • Customers
  • Orders
  • Reports
  • Coupons
0.2.0

6 years ago

0.1.0

6 years ago

0.0.1

6 years ago