This is a library that makes simple requests to the WooCommerce API.
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"}
]
endAdd this configurations to your config.exs file:
config :ex_woo,
base_url: "Your site URL",
key: "Your Customer Key",
secret: "Your Customer Secret"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")