ExShopifyApp (ex_shopify_app v1.2.0)
Documentation for ExShopifyApp.
Summary
Functions
Returns the App Events config, with defaults merged in.
Returns the Tesla adapter used for all outbound HTTP requests.
Functions
@spec api_key() :: String.t()
@spec api_secret() :: String.t()
@spec api_version() :: String.t()
@spec app_events_config() :: keyword()
Returns the App Events config, with defaults merged in.
Read individual settings off the result:
:token_cache— theExShopifyApp.AppEvents.TokenCacheimplementationExShopifyApp.AppEventscallsfetch/0on. Defaults toExShopifyApp.AppEvents.TokenServer.:start_token_cache— whetherExShopifyApp.Applicationauto-supervises the:token_cachemodule. Defaults totrue; setfalseto supervise it yourself.
Configure via:
config :ex_shopify_app, :app_events,
token_cache: MyApp.TokenCache
@spec tesla_adapter() :: Tesla.Client.adapter()
Returns the Tesla adapter used for all outbound HTTP requests.
Resolution order:
:ex_shopify_app, :tesla_adapter— the library's own config, so host apps can set the adapter for this library without touching global Tesla config.:tesla, :adapter— Tesla's global config, honoured as a fallback.Tesla.Adapter.Mint— the default.
The test env routes everything through a Mox-backed mock adapter via the global
Tesla config (see test/support/mocks.ex).