|
1 |
| -<!DOCTYPE html> |
| 1 | +<!doctype html> |
2 | 2 | <html lang="en">
|
3 |
| - <head> |
4 |
| - <meta charset="utf-8"> |
5 |
| - <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
6 |
| - <meta http-equiv="x-ua-compatible" content="ie=edge"> |
7 |
| - <title>Get started with your Twilio Functions!</title> |
| 3 | + <head> |
| 4 | + <meta charset="utf-8" /> |
| 5 | + <meta name="viewport" content="width=device-width, initial-scale=1.0" /> |
| 6 | + <meta http-equiv="x-ua-compatible" content="ie=edge" /> |
| 7 | + <title>Get started with your Twilio Functions!</title> |
8 | 8 |
|
9 |
| - <link rel="icon" href="https://twilio-labs.github.io/function-templates/static/v1/favicon.ico"> |
10 |
| - <link rel="stylesheet" href="https://twilio-labs.github.io/function-templates/static/v1/ce-paste-theme.css"> |
| 9 | + <link |
| 10 | + rel="icon" |
| 11 | + href="https://twilio-labs.github.io/function-templates/static/v1/favicon.ico" |
| 12 | + /> |
| 13 | + <link |
| 14 | + rel="stylesheet" |
| 15 | + href="https://twilio-labs.github.io/function-templates/static/v1/ce-paste-theme.css" |
| 16 | + /> |
11 | 17 |
|
12 |
| - <script src="https://twilio-labs.github.io/function-templates/static/v1/ce-helpers.js" defer></script> |
13 |
| - <script> |
14 |
| - window.addEventListener('DOMContentLoaded', (_event) => { |
15 |
| - inputPrependBaseURL(); |
16 |
| - }); |
17 |
| - </script> |
18 |
| - </head> |
19 |
| - <body> |
20 |
| - <div class="page-top"> |
21 |
| - <header> |
22 |
| - <div id="twilio-logo"> |
23 |
| - <a href="https://www.twilio.com/" target="_blank" rel="noopener"> |
24 |
| - <svg class="logo" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewbox="0 0 60 60"> |
25 |
| - <title>Twilio Logo</title><path class="cls-1" d="M30,15A15,15,0,1,0,45,30,15,15,0,0,0,30,15Zm0,26A11,11,0,1,1,41,30,11,11,0,0,1,30,41Zm6.8-14.7a3.1,3.1,0,1,1-3.1-3.1A3.12,3.12,0,0,1,36.8,26.3Zm0,7.4a3.1,3.1,0,1,1-3.1-3.1A3.12,3.12,0,0,1,36.8,33.7Zm-7.4,0a3.1,3.1,0,1,1-3.1-3.1A3.12,3.12,0,0,1,29.4,33.7Zm0-7.4a3.1,3.1,0,1,1-3.1-3.1A3.12,3.12,0,0,1,29.4,26.3Z"/></svg> |
26 |
| - </a> |
27 |
| - </div> |
28 |
| - <nav> |
29 |
| - <span>Your Twilio application</span> |
30 |
| - <aside> |
31 |
| - <svg class="icon" role="img" aria-hidden="true" width="100%" height="100%" viewBox="0 0 20 20" aria-labelledby="NewIcon-1577"><path fill="currentColor" fill-rule="evenodd" d="M6.991 7.507c.003-.679 1.021-.675 1.019.004-.012 2.956 1.388 4.41 4.492 4.48.673.016.66 1.021-.013 1.019-2.898-.011-4.327 1.446-4.48 4.506-.033.658-1.01.639-1.018-.02-.03-3.027-1.382-4.49-4.481-4.486-.675 0-.682-1.009-.008-1.019 3.02-.042 4.478-1.452 4.49-4.484zm.505 2.757l-.115.242c-.459.9-1.166 1.558-2.115 1.976l.176.08c.973.465 1.664 1.211 2.083 2.22l.02.05.088-.192c.464-.973 1.173-1.685 2.123-2.124l.039-.018-.118-.05c-.963-.435-1.667-1.117-2.113-2.034l-.068-.15zm10.357-8.12c.174.17.194.434.058.625l-.058.068-1.954 1.905 1.954 1.908a.482.482 0 010 .694.512.512 0 01-.641.056l-.07-.056-1.954-1.908-1.954 1.908a.511.511 0 01-.71 0 .482.482 0 01-.058-.626l.058-.068 1.954-1.908-1.954-1.905a.482.482 0 010-.693.512.512 0 01.64-.057l.07.057 1.954 1.905 1.954-1.905a.511.511 0 01.71 0z"></path></svg> |
32 |
| - Live |
33 |
| - </aside> |
34 |
| - </nav> |
35 |
| - </header> |
| 18 | + <script |
| 19 | + src="https://twilio-labs.github.io/function-templates/static/v1/ce-helpers.js" |
| 20 | + defer |
| 21 | + ></script> |
| 22 | + <script> |
| 23 | + window.addEventListener('DOMContentLoaded', (_event) => { |
| 24 | + inputPrependBaseURL(); |
| 25 | + }); |
| 26 | + </script> |
| 27 | + </head> |
| 28 | + <body> |
| 29 | + <div class="page-top"> |
| 30 | + <header> |
| 31 | + <div id="twilio-logo"> |
| 32 | + <a href="https://www.twilio.com/" target="_blank" rel="noopener"> |
| 33 | + <svg |
| 34 | + class="logo" |
| 35 | + data-name="Layer 1" |
| 36 | + xmlns="http://www.w3.org/2000/svg" |
| 37 | + viewbox="0 0 60 60" |
| 38 | + > |
| 39 | + <title>Twilio Logo</title> |
| 40 | + <path |
| 41 | + class="cls-1" |
| 42 | + d="M30,15A15,15,0,1,0,45,30,15,15,0,0,0,30,15Zm0,26A11,11,0,1,1,41,30,11,11,0,0,1,30,41Zm6.8-14.7a3.1,3.1,0,1,1-3.1-3.1A3.12,3.12,0,0,1,36.8,26.3Zm0,7.4a3.1,3.1,0,1,1-3.1-3.1A3.12,3.12,0,0,1,36.8,33.7Zm-7.4,0a3.1,3.1,0,1,1-3.1-3.1A3.12,3.12,0,0,1,29.4,33.7Zm0-7.4a3.1,3.1,0,1,1-3.1-3.1A3.12,3.12,0,0,1,29.4,26.3Z" |
| 43 | + /> |
| 44 | + </svg> |
| 45 | + </a> |
36 | 46 | </div>
|
37 |
| - <main> |
38 |
| - <div class="content"> |
39 |
| - <h1> |
40 |
| - <img src="https://twilio-labs.github.io/function-templates/static/v1/success.svg" /> |
41 |
| - <div> |
42 |
| - <p>Welcome!</p> |
43 |
| - <p>Your live application with Twilio is ready to use!</p> |
44 |
| - </div> |
45 |
| - </h1> |
46 |
| - <section> |
47 |
| - <h2>Get started with your application</h2> |
48 |
| - <p> |
49 |
| - Follow these steps to try out your new app: |
50 |
| - </p> |
51 |
| - <p> |
52 |
| - This app presents callers with an IVR (phone tree) whose options can be selected using |
53 |
| - either phone keypad digits or the caller's voice. |
54 |
| - </p> |
55 |
| - <ol class="steps"> |
56 |
| - <li>Call your Twilio phone number</li> |
57 |
| - <li>You should be greeted by a voice listing all options</li> |
58 |
| - <li>Press any of the mentioned digits or try saying the words</li> |
59 |
| - </ol> |
60 |
| - </section> |
| 47 | + <nav> |
| 48 | + <span>Your Twilio application</span> |
| 49 | + <aside> |
| 50 | + <svg |
| 51 | + class="icon" |
| 52 | + role="img" |
| 53 | + aria-hidden="true" |
| 54 | + width="100%" |
| 55 | + height="100%" |
| 56 | + viewBox="0 0 20 20" |
| 57 | + aria-labelledby="NewIcon-1577" |
| 58 | + > |
| 59 | + <path |
| 60 | + fill="currentColor" |
| 61 | + fill-rule="evenodd" |
| 62 | + d="M6.991 7.507c.003-.679 1.021-.675 1.019.004-.012 2.956 1.388 4.41 4.492 4.48.673.016.66 1.021-.013 1.019-2.898-.011-4.327 1.446-4.48 4.506-.033.658-1.01.639-1.018-.02-.03-3.027-1.382-4.49-4.481-4.486-.675 0-.682-1.009-.008-1.019 3.02-.042 4.478-1.452 4.49-4.484zm.505 2.757l-.115.242c-.459.9-1.166 1.558-2.115 1.976l.176.08c.973.465 1.664 1.211 2.083 2.22l.02.05.088-.192c.464-.973 1.173-1.685 2.123-2.124l.039-.018-.118-.05c-.963-.435-1.667-1.117-2.113-2.034l-.068-.15zm10.357-8.12c.174.17.194.434.058.625l-.058.068-1.954 1.905 1.954 1.908a.482.482 0 010 .694.512.512 0 01-.641.056l-.07-.056-1.954-1.908-1.954 1.908a.511.511 0 01-.71 0 .482.482 0 01-.058-.626l.058-.068 1.954-1.908-1.954-1.905a.482.482 0 010-.693.512.512 0 01.64-.057l.07.057 1.954 1.905 1.954-1.905a.511.511 0 01.71 0z" |
| 63 | + ></path> |
| 64 | + </svg> |
| 65 | + Live |
| 66 | + </aside> |
| 67 | + </nav> |
| 68 | + </header> |
| 69 | + </div> |
| 70 | + <main> |
| 71 | + <div class="content"> |
| 72 | + <h1> |
| 73 | + <img |
| 74 | + src="https://twilio-labs.github.io/function-templates/static/v1/success.svg" |
| 75 | + /> |
| 76 | + <div> |
| 77 | + <p>Welcome!</p> |
| 78 | + <p>Your live application with Twilio is ready to use!</p> |
| 79 | + </div> |
| 80 | + </h1> |
| 81 | + <section> |
| 82 | + <h2>Get started with your application</h2> |
| 83 | + <p>Follow these steps to try out your new app:</p> |
| 84 | + <p> |
| 85 | + This app presents callers with an IVR (phone tree) whose options can |
| 86 | + be selected using either phone keypad digits or the caller's voice. |
| 87 | + </p> |
| 88 | + <ol class="steps"> |
| 89 | + <li>Call your Twilio phone number</li> |
| 90 | + <li>You should be greeted by a voice listing all options</li> |
| 91 | + <li>Press any of the mentioned digits or try saying the words</li> |
| 92 | + </ol> |
| 93 | + </section> |
61 | 94 |
|
62 |
| - <section> |
63 |
| - <!-- APP_INFO_V2 --> |
64 |
| - </section> |
65 |
| - <section> |
66 |
| - <h2>Troubleshooting</h2> |
67 |
| - <ul> |
68 |
| - <li> |
69 |
| - Check the |
70 |
| - <a href="https://www.twilio.com/console/phone-numbers/incoming" |
71 |
| - target="_blank" |
72 |
| - rel="noopener"> |
73 |
| - phone number configuration |
74 |
| - </a> |
75 |
| - and make sure the Twilio phone number you want for your app has a voice webhook |
76 |
| - configured to point at the following URL |
77 |
| - <form> |
78 |
| - <label for="twilio-webhook">Webhook URL</label> |
79 |
| - <input type="text" id="twilio-webhook" class="function-root" readonly=true value="/voice-ivr"> |
80 |
| - </form> |
81 |
| - </li> |
82 |
| - </ul> |
83 |
| - </section> |
84 |
| - </div> |
85 |
| - </main> |
86 |
| - <footer> |
87 |
| - <span class="statement">We can't wait to see what you build.</span> |
88 |
| - </footer> |
89 |
| - </body> |
| 95 | + <section> |
| 96 | + <!-- APP_INFO_V2 --> |
| 97 | + </section> |
| 98 | + <section> |
| 99 | + <h2>Troubleshooting</h2> |
| 100 | + <ul> |
| 101 | + <li> |
| 102 | + Check the |
| 103 | + <a |
| 104 | + href="https://www.twilio.com/console/phone-numbers/incoming" |
| 105 | + target="_blank" |
| 106 | + rel="noopener" |
| 107 | + > |
| 108 | + phone number configuration |
| 109 | + </a> |
| 110 | + and make sure the Twilio phone number you want for your app has a |
| 111 | + voice webhook configured to point at the following URL |
| 112 | + <form> |
| 113 | + <label for="twilio-webhook">Webhook URL</label> |
| 114 | + <input |
| 115 | + type="text" |
| 116 | + id="twilio-webhook" |
| 117 | + class="function-root" |
| 118 | + readonly="true" |
| 119 | + value="/voice-ivr" |
| 120 | + /> |
| 121 | + </form> |
| 122 | + </li> |
| 123 | + </ul> |
| 124 | + </section> |
| 125 | + </div> |
| 126 | + </main> |
| 127 | + <footer> |
| 128 | + <span class="statement">We can't wait to see what you build.</span> |
| 129 | + </footer> |
| 130 | + </body> |
90 | 131 | </html>
|
0 commit comments