Last active
January 9, 2020 21:37
-
-
Save chiragtoor/a7f6939183d19e87d78b76199823ac28 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
Thank you!