Skip to content

Latest commit

 

History

History
41 lines (32 loc) · 701 Bytes

README.md

File metadata and controls

41 lines (32 loc) · 701 Bytes

ExWoo

This is a library that makes simple requests to the WooCommerce API.

Installation

If available in Hex, the package can be installed by adding ex_woo to your list of dependencies in mix.exs:

def deps do
  [
    {:ex_woo, "~> 0.1.0"}
  ]
end

Add this configurations to your config.exs file:

config :ex_woo,
  base_url: "Your site URL",
  key: "Your Customer Key",
  secret: "Your Customer Secret"

Example

config.exs:

config :ex_woo,
  base_url: "https://mysite.com/wp-json/wc/v3",
  key: "my_key",
  secret: "my_secret"

In your program:

# To list all customers
ExWoo.get("/customers")