Skip to content

Instantly share code, notes, and snippets.

@churcho
Forked from chiragtoor/text_example.ex
Created January 9, 2020 21:37
Show Gist options
  • Save churcho/12a7216fe721b41579386bae9aa0ff03 to your computer and use it in GitHub Desktop.
Save churcho/12a7216fe721b41579386bae9aa0ff03 to your computer and use it in GitHub Desktop.
Example Elixir code for sending a text message through ExTwilio
def send_text_message(phone_number, message) do
ExTwilio.Api.create(ExTwilio.Message,
[to: phone_number,
from: Application.get_env(:ex_twilio, :send_number),
body: message])
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment