ExCallfire
ExCallfire is a micro wrapper intended to be used for sending requests to CallFire'sREST API. It's pretty much lifted directly from Heresy'sStripy package. Thanks, Heresy.
Installation
def deps do
[
{:ex_callfire, "~> 0.1.0"}
]
endSetup
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/Usage Examples
Get contacts
ExCallfire.req(:get, "contacts")Send a text
ExCallfire.req(:post, "texts", [%{"phoneNumber" => "2125551212", "message" => "Oh, Hai!"}])Delete an auto-reply
ExCallfire.req(:delete, "texts/auto-replys", "1234567890")