Last active
November 23, 2016 17:02
-
-
Save chiragtoor/950da69d0c79faff79a3c88a05092e6a to your computer and use it in GitHub Desktop.
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
defmodule Project.Twilio do | |
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 | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment