PINXS (pinxs v3.1.3) View Source
Convenience functions for building config structs
Link to this section Summary
Link to this section Types
Specs
Link to this section Functions
Default usage is to just provide the api key
iex> PINXS.config("ABC123")
%PINXS{api_key: "ABC123", url: "https://api.pin.net.au/1"}
If you want to use test mode
iex> PINXS.config("ABC123", :test)
%PINXS{api_key: "ABC123", url: "https://test-api.pin.net.au/1"}
Or you can have an arbitrary URL
iex> PINXS.config("ABC123", "https://my-fake-pin")
%PINXS{api_key: "ABC123", url: "https://my-fake-pin"}