ExTwilio v0.7.0 ExTwilio.Config View Source
Stores configuration variables used to communicate with Twilio's API.
All settings also accept {:system, "ENV_VAR_NAME"}
to read their
values from environment variables at runtime.
Link to this section Summary
Functions
Returns the Twilio Account SID. Set it in mix.exs
Returns the domain of the Twilio API. This will default to "api.twilio.com",
but can be overridden using the following setting in mix.exs
Returns the version of the API that ExTwilio is going to talk to. Set it in
mix.exs
:
config :ex_twilio, api_version: "2015-05-06"
Returns the Twilio Auth Token for your account. Set it in mix.exs
Return the combined base URL of the Twilio API, using the configuration settings given
A light wrapper around Application.get_env/2
, providing automatic support for
{:system, "VAR"}
tuples
Returns the protocol used for the Twilio API. The default is "https"
for
interacting with the Twilio API, but when testing with Bypass, you may want
this to be "http"
Link to this section Functions
account_sid() View Source
Returns the Twilio Account SID. Set it in mix.exs
:
config :ex_twilio, account_sid: "YOUR_ACCOUNT_SID"
api_domain() View Source
Returns the domain of the Twilio API. This will default to "api.twilio.com",
but can be overridden using the following setting in mix.exs
:
config :ex_twilio, api_domain: "other.twilio.com"
api_version() View Source
Returns the version of the API that ExTwilio is going to talk to. Set it in
mix.exs
:
config :ex_twilio, api_version: "2015-05-06"
auth_token() View Source
Returns the Twilio Auth Token for your account. Set it in mix.exs
:
config :ex_twilio, auth_token: "YOUR_AUTH_TOKEN"
base_url() View Source
Return the combined base URL of the Twilio API, using the configuration settings given.
from_env(otp_app, key, default \\ nil) View Source
A light wrapper around Application.get_env/2
, providing automatic support for
{:system, "VAR"}
tuples.
notify_url() View Source
programmable_chat_url() View Source
protocol() View Source
Returns the protocol used for the Twilio API. The default is "https"
for
interacting with the Twilio API, but when testing with Bypass, you may want
this to be "http"
.