Shopify (exshopify v0.11.0)

Link to this section Summary

Functions

Parses the shop slug from a shop domain.

Create a session for making requests to a single store.

Create a session for making requests to multiple stores.

Make a request to the Shopify API.

Link to this section Types

Link to this type

response_t()

Specs

response_t() :: {:ok, Shopify.Response.t()} | {:error, any()}

Specs

Link to this section Functions

Link to this function

get_slug_from_shop(shop)

Specs

get_slug_from_shop(binary()) :: binary()

Parses the shop slug from a shop domain.

Example

$> Shopify.get_slug_from_shop("johns-apparel.myshopify.com")
#> "johns-apparel"
Link to this function

new_private_session(shop_name, api_key, password)

Specs

new_private_session(binary(), binary(), binary()) :: Shopify.Session.Private.t()

Create a session for making requests to a single store.

Link to this function

new_public_session(shop_name, access_token \\ nil)

Specs

new_public_session(binary(), binary() | nil) :: Shopify.Session.Public.t()

Create a session for making requests to multiple stores.

Link to this function

request(operation, session, config \\ %{})

Specs

Make a request to the Shopify API.