ExCallfire is a micro wrapper intended to be used for sending requests to CallFire's REST API. It's pretty much lifted directly from Heresy's Stripy package. Thanks, Heresy.
def deps do
[
{:ex_callfire, "~> 0.1.1"}
]
end
Add "username" and "password" system variables. Obtain these via your CallFire dashboard.
export CALLFIRE_USERNAME=QWERTY12345
export CALLFIRE_PASSWORD=QWERTY12345
export CALLFIRE_ENDPOINT=https://api.callfire.com/v2/
ExCallfire.req(:get, "contacts")
ExCallfire.req(:post, "texts", [%{"phoneNumber" => "2125551212", "message" => "Oh, Hai!"}])
ExCallfire.req(:delete, "texts/auto-replys", "1234567890")