Skip to content

Allow API key on a per request basis

Compare
Choose a tag to compare
@mfeckie mfeckie released this 30 Jul 04:20
· 125 commits to master since this release
f7ff243

Previously API key was specified at compile time using Mix config.

In order to provide greater flexibility for things like marketplace providers we now provide the ability to swap API on a per request basis.

This introduces a breaking change wherein all requests require you to pass in your API key. A helper is provided to ensure the key is formatted appropriately PINXS.config("MY API KEY"). This will be passed as the last parameter to all requests.