Created
April 10, 2016 13:36
-
-
Save mplacona/1eafd3cbb7fcfc978aa0ef5e6f4b3e51 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 make_call | |
client = Twilio::REST::Client.new your-sid, your-token | |
call = client.account.calls.create( | |
:from => your-twilio-number, # From your Twilio number | |
:to => your-real-number, # To any number | |
# Fetch instructions from this URL when the call connects | |
:url => 'your-ngrok-url' | |
) | |
render json: call.sid | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment