Skip to content

Commit

Permalink
Merge pull request twilio#159 from vassjozsef/master
Browse files Browse the repository at this point in the history
use --data-urlencode in curl samples for making-calls
  • Loading branch information
kwhinnery committed Oct 5, 2016
2 parents ece5860 + 7376eae commit 82c49e0
Show file tree
Hide file tree
Showing 8 changed files with 48 additions and 48 deletions.
8 changes: 4 additions & 4 deletions rest/making-calls/example-1/example-1.json.curl
@@ -1,5 +1,5 @@
$ curl -XPOST https://api.twilio.com/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Calls.json \
-d "Url=http://demo.twilio.com/docs/voice.xml" \
-d "To=%2B14155551212" \
-d "From=%2B14158675309" \
-u 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:your_auth_token'
--data-urlencode "Url=http://demo.twilio.com/docs/voice.xml" \
--data-urlencode "To=+14155551212" \
--data-urlencode "From=+14158675309" \
-u 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:your_auth_token'
8 changes: 4 additions & 4 deletions rest/making-calls/example-1/example-1.xml.curl
@@ -1,5 +1,5 @@
$ curl -XPOST https://api.twilio.com/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Calls \
-d "Url=http://demo.twilio.com/docs/voice.xml" \
-d "To=%2B14155551212" \
-d "From=%2B14158675309" \
-u 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:your_auth_token'
--data-urlencode "Url=http://demo.twilio.com/docs/voice.xml" \
--data-urlencode "To=+14155551212" \
--data-urlencode "From=+14158675309" \
-u 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:your_auth_token'
8 changes: 4 additions & 4 deletions rest/making-calls/example-2/example-2.json.curl
@@ -1,5 +1,5 @@
$ curl -XPOST https://api.twilio.com/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Calls.json \
-d "Url=http://demo.twilio.com/docs/voice.xml" \
-d "To=client:tommy" \
-d "From=%2B15017250604" \
-u 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:your_auth_token'
--data-urlencode "Url=http://demo.twilio.com/docs/voice.xml" \
--data-urlencode "To=client:tommy" \
--data-urlencode "From=+15017250604" \
-u 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:your_auth_token'
8 changes: 4 additions & 4 deletions rest/making-calls/example-2/example-2.xml.curl
@@ -1,5 +1,5 @@
$ curl -XPOST https://api.twilio.com/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Calls \
-d "Url=http://demo.twilio.com/docs/voice.xml" \
-d "To=client:tommy" \
-d "From=%2B15017250604" \
-u 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:your_auth_token'
--data-urlencode "Url=http://demo.twilio.com/docs/voice.xml" \
--data-urlencode "To=client:tommy" \
--data-urlencode "From=+15017250604" \
-u 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:your_auth_token'
12 changes: 6 additions & 6 deletions rest/making-calls/example-3/example-3.json.curl
@@ -1,7 +1,7 @@
$ curl -XPOST https://api.twilio.com/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Calls.json \
-d "Url=http://demo.twilio.com/docs/voice.xml" \
-d "To=%2B14155551212" \
-d "SendDigits=1234%23" \
-d "From=%2B18668675309" \
-d "Method=GET" \
-u 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:your_auth_token'
--data-urlencode "Url=http://demo.twilio.com/docs/voice.xml" \
--data-urlencode "To=+14155551212" \
--data-urlencode "SendDigits=1234#" \
--data-urlencode "From=+18668675309" \
--data-urlencode "Method=GET" \
-u 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:your_auth_token'
12 changes: 6 additions & 6 deletions rest/making-calls/example-3/example-3.xml.curl
@@ -1,7 +1,7 @@
$ curl -XPOST https://api.twilio.com/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Calls \
-d "Url=http://demo.twilio.com/docs/voice.xml" \
-d "To=%2B14155551212" \
-d "SendDigits=1234%23" \
-d "From=%2B18668675309" \
-d "Method=GET" \
-u 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:your_auth_token'
--data-urlencode "Url=http://demo.twilio.com/docs/voice.xml" \
--data-urlencode "To=+14155551212" \
--data-urlencode "SendDigits=1234#" \
--data-urlencode "From=+18668675309" \
--data-urlencode "Method=GET" \
-u 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:your_auth_token'
20 changes: 10 additions & 10 deletions rest/making-calls/example-4/example-4.json.curl
@@ -1,12 +1,12 @@
$ curl -XPOST https://api.twilio.com/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Calls.json \
-d "Url=http://demo.twilio.com/docs/voice.xml" \
-d "To=%2B14155551212" \
-d "From=%2B18668675309" \
-d "Method=GET" \
-d "StatusCallback=https://www.myapp.com/events" \
-d "StatusCallbackMethod=POST" \
-d "StatusCallbackEvent=initiated" \
-d "StatusCallbackEvent=ringing" \
-d "StatusCallbackEvent=answered" \
-d "StatusCallbackEvent=completed" \
--data-urlencode "Url=http://demo.twilio.com/docs/voice.xml" \
--data-urlencode "To=+14155551212" \
--data-urlencode "From=+18668675309" \
--data-urlencode "Method=GET" \
--data-urlencode "StatusCallback=https://www.myapp.com/events" \
--data-urlencode "StatusCallbackMethod=POST" \
--data-urlencode "StatusCallbackEvent=initiated" \
--data-urlencode "StatusCallbackEvent=ringing" \
--data-urlencode "StatusCallbackEvent=answered" \
--data-urlencode "StatusCallbackEvent=completed" \
-u 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:your_auth_token'
20 changes: 10 additions & 10 deletions rest/making-calls/example-4/example-4.xml.curl
@@ -1,12 +1,12 @@
$ curl -XPOST https://api.twilio.com/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Calls \
-d "Url=http://demo.twilio.com/docs/voice.xml" \
-d "To=%2B14155551212" \
-d "From=%2B18668675309" \
-d "Method=GET" \
-d "StatusCallback=https://www.myapp.com/events" \
-d "StatusCallbackMethod=POST" \
-d "StatusCallbackEvent=initiated" \
-d "StatusCallbackEvent=ringing" \
-d "StatusCallbackEvent=answered" \
-d "StatusCallbackEvent=completed" \
--data-urlencode "Url=http://demo.twilio.com/docs/voice.xml" \
--data-urlencode "To=+14155551212" \
--data-urlencode "From=+18668675309" \
--data-urlencode "Method=GET" \
--data-urlencode "StatusCallback=https://www.myapp.com/events" \
--data-urlencode "StatusCallbackMethod=POST" \
--data-urlencode "StatusCallbackEvent=initiated" \
--data-urlencode "StatusCallbackEvent=ringing" \
--data-urlencode "StatusCallbackEvent=answered" \
--data-urlencode "StatusCallbackEvent=completed" \
-u 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:your_auth_token'

0 comments on commit 82c49e0

Please sign in to comment.