Permalink
Browse files

Adding twilio favicon in templates/index.html

Fixing typo in templates/index.html
Adding reference to util helper functions for generate_token and render_template
  • Loading branch information...
1 parent 8649c97 commit 7206d5a1de66a64474dab569b67846f2cf66e1e5 @kelvl kelvl committed Oct 15, 2012
Showing with 14 additions and 4 deletions.
  1. +9 −3 docs/browser.rst
  2. +5 −1 templates/index.html
View
@@ -63,7 +63,7 @@ Here is the function we'll use for generating the Capability Token.
from twilio.util import TwilioCapability
- def gen_token(account_sid, auth_token, application_sid):
+ def generate_token(account_sid, auth_token, application_sid):
capability = TwilioCapability(account_sid, auth_token)
# Allow access to the Call-in ApplicationSid we created
capability.allow_client_outgoing(application_sid)
@@ -74,15 +74,21 @@ Answering Queues in the Browser
-------------------------------
The first thing we'll need to build is a web interface. Let's start by adding a
-new AppEngine RequestHandler into ``main.py``.
+new AppEngine RequestHandler into ``main.py``.
+
+We have included some helper functions
+for generating `Capability Tokens <https://www.twilio.com/docs/client/capability-tokens>`_ and
+rendering templates on AppEngine. Those are imported from ``util.py``.
.. code-block:: python
+ from util import gen_token, render_template
+
class IndexPage(webapp2.RequestHandler):
def get(self):
params = {
- "token": gen_token(ACCOUNT_SID, AUTH_TOKEN, APP_SID)
+ "token": generate_token(ACCOUNT_SID, AUTH_TOKEN, APP_SID)
}
self.response.out.write(render_template("index.html", params))
View
@@ -2,6 +2,10 @@
<html>
<head>
<title>Radio Call-In Dashboard</title>
+ <link rel="shortcut icon" href="//static0.twilio.com/packages/favicons/img/Twilio_64.png" />
+ <link rel="apple-touch-icon" href="//static1.twilio.com/packages/favicons/img/Twilio_57.png" />
+ <link rel="apple-touch-icon" sizes="72x72" href="//static0.twilio.com/packages/favicons/img/Twilio_72.png" />
+ <link rel="apple-touch-icon" sizes="114x114" href="//static0.twilio.com/packages/favicons/img/Twilio_114.png" />
<script type="text/javascript"
src="http://static.twilio.com/libs/twiliojs/1.0/twilio.min.js"></script>
<script type="text/javascript"
@@ -26,7 +30,7 @@
});
function call() {
- Twilio.evice.connect();
+ Twilio.Device.connect();
}
</script>
</head>

0 comments on commit 7206d5a

Please sign in to comment.