Skip to content
Browse files

s/myapp.com/example.com/g

myapp.com is an actual domain that isn't related to Twilio.
example.com is a domain kept expressly for this purpose
  • Loading branch information...
1 parent 8580bd6 commit 957832c721e351a2017ae10913d0c80550297b22 @jpf jpf committed Aug 8, 2012
Showing with 6 additions and 6 deletions.
  1. +2 −2 README.md
  2. +4 −4 examples/examples.rb
View
4 README.md
@@ -50,7 +50,7 @@ auth_token = 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy'
@call = @client.account.calls.create(
:from => '+14159341234',
:to => '+18004567890',
- :url => 'http://myapp.com/call-handler'
+ :url => 'http://example.com/call-handler'
)
# hangup a ringing call, but don't touch it if it's connected
@@ -60,7 +60,7 @@ auth_token = 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy'
@call = @client.account.calls.get('CA386025c9bf5d6052a1d1ea42b4d16662')
# redirect an in-progress call
-@call.redirect_to('http://myapp.com/call-redirect')
+@call.redirect_to('http://example.com/call-redirect')
# hangup a call, no matter whether it is ringing or connected
@call.hangup
View
8 examples/examples.rb
@@ -32,7 +32,7 @@
@account.calls.get('CAXXXXXXX').recordings.list.each do {|r| puts r.wav}
# make a new outgoing call. returns a call object just like calls.get
-@call = @account.calls.create({:from => '+14159341234', :to => '+18004567890', :url => 'http://myapp.com/call-handler'})
+@call = @account.calls.create({:from => '+14159341234', :to => '+18004567890', :url => 'http://example.com/call-handler'})
# cancel the call if not already in progress
@account.calls.get(@call.sid).update({:status => 'canceled'})
@@ -42,10 +42,10 @@
@call.cancel
# redirect and then terminate a call
-@account.calls.get('CA386025c9bf5d6052a1d1ea42b4d16662').update({:url => 'http://myapp.com/call-redirect'})
+@account.calls.get('CA386025c9bf5d6052a1d1ea42b4d16662').update({:url => 'http://example.com/call-redirect'})
@account.calls.get('CA386025c9bf5d6052a1d1ea42b4d16662').update({:status => 'completed'})
# or, use the aliases...
-@call.redirect_to('http://myapp.com/call-redirect')
+@call.redirect_to('http://example.com/call-redirect')
@call.hangup
################ SMS MESSAGES ################
@@ -74,7 +74,7 @@
@account.incoming_phone_numbers.create(:phone_number => @numbers[0].phone_number)
# update an existing phone number's voice url
-@account.incoming_phone_numbers.get('PNdba508c5616a7f5e141789f44f022cc3').update({:voice_url => 'http://myapp.com/voice'})
+@account.incoming_phone_numbers.get('PNdba508c5616a7f5e141789f44f022cc3').update({:voice_url => 'http://example.com/voice'})
################ CONFERENCES ################

0 comments on commit 957832c

Please sign in to comment.
Something went wrong with that request. Please try again.