Packages
ex_porter_sdk
0.1.0
An Elixir SDK for Porter's delivery API, providing a simple and reliable way to integrate Porter's logistics services into your Elixir applications. Features include getting delivery quotes, creating and managing delivery orders, and real-time order tracking.
Current section
Files
Jump to
Current section
Files
lib/config.ex
defmodule ExPorterSDK.Config do
@moduledoc """
Configuration for Porter SDK.
"""
def base_url, do: Application.get_env(:ex_porter_sdk, :base_url)
def api_key, do: Application.get_env(:ex_porter_sdk, :api_key)
def get do
%{
base_url: base_url(),
api_key: api_key()
}
end
end