ExShopifyApp.Shop (ex_shopify_app v1.2.0)
Shop references and shop-domain helpers shared across the library.
A few shapes of shop reference recur throughout the API:
t/0— a shop identified by its:shopify_domainonly. Enough to look up, refresh, or migrate a stored access token.authorized/0— a shop carrying both its:shopify_domainand an offline:access_token, ready to authenticate Admin API requests. TheExShopifyApp.AccessToken.Tokenstruct satisfies this shape, so it can be passed directly; any map exposing both fields works too.identified/0— a shop carrying its:shop_gid, the shape Shopify's shop-global APIs (e.g. App Events) address shops by. SeeExShopifyApp.Graphql.ensure_gid/2for building one from a numeric ID.
Summary
Types
A shop reference carrying its :shopify_domain and offline :access_token.
A shop reference carrying its :shop_gid, e.g. "gid://shopify/Shop/123".
A shop reference carrying at least its :shopify_domain.
Functions
Normalizes a shop domain the same way ExShopifyApp.AccessToken.client/1 does:
strips a leading https:// so the stored key matches the host used for requests.
Types
Functions
Normalizes a shop domain the same way ExShopifyApp.AccessToken.client/1 does:
strips a leading https:// so the stored key matches the host used for requests.