An Elixir client for the Shopify API. Currently under development.
1. Add shopify to your list of dependencies in `mix.exs`:
def deps do
[{:shopify, github: "Boulevard/shopify"}]
end
2. Ensure shopify is started before your application:
def application do
[applications: [:shopify]]
end
The following environment variables must be set:
SHOPIFY_SECRET
SHOPIFY_REFRESH_TOKEN
SHOPIFY_API_KEY
These may be configured as strings during compile-time, or you may provide the {:system, "VARNAME"}
format.
config :shopify,
secret: {:system, "SHOPIFY_SECRET"},
refresh_token: {:system, "SHOPIFY_REFRESH_TOKEN"},
api_key: {:system, "SHOPIFY_API_KEY"}
Resource | Implemented? |
---|---|
Abandoned checkouts | |
ApplicationCharge | |
Article | |
Asset | |
Blog | |
CarrierService | |
Collect | |
Comment | |
Country | |
CustomCollection | |
Customer | ✓ |
CustomerAddress | |
CustomerSavedSearch | |
Discount | |
Event | |
Fulfillment | |
FulfillmentEvent | |
FulfillmentService | |
Gift Card | |
Location | |
Metafield | |
Multipass | |
Order | ✓ |
Order Risks | |
Page | |
Policy | |
Product | ✓ |
Product Image | |
Product Variant | ✓ |
Province | |
RecurringApplicationCharge | |
Redirect | |
Refund | |
ScriptTag | |
Shipping Zone | |
Shop | ✓ |
SmartCollection | |
Theme | |
Transaction | |
User | |
Webhook | ✓ |