Last active
November 23, 2016 17:03
-
-
Save chiragtoor/b71114b9ff33b847886911653741553d 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
def send_text_message( | |
%Plug.Conn{adapter: {Plug.Adapters.Test.Conn, _}}, _, _), do: nil | |
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