-
-
Save churcho/12a7216fe721b41579386bae9aa0ff03 to your computer and use it in GitHub Desktop.
Example Elixir code for sending a text message through ExTwilio
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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