exshopify v0.9.0 Shopify
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()
response_t()
response_t() :: {:ok, Shopify.Response.t()} | {:error, any()}
response_t() :: {:ok, Shopify.Response.t()} | {:error, any()}
Link to this type
session_t()
session_t()
session_t() :: Shopify.Session.Private.t() | Shopify.Session.Public.t()
session_t() :: Shopify.Session.Private.t() | Shopify.Session.Public.t()
Link to this section Functions
Link to this function
get_slug_from_shop(shop)
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)
new_private_session(shop_name, api_key, password)
new_private_session(binary(), binary(), binary()) :: Shopify.Session.Private.t()
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)
new_public_session(shop_name, access_token \\ nil)
new_public_session(binary(), binary() | nil) :: Shopify.Session.Public.t()
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 \\ %{})
request(operation, session, config \\ %{})
request(Shopify.Operation.t(), session_t(), map()) :: response_t()
request(Shopify.Operation.t(), session_t(), map()) :: response_t()
Make a request to the Shopify API.