twilio-ruby 3.10.1 → 3.11.0
Sign up to get free protection for your applications and to get access to all the features.
- data/AUTHORS.md +24 -0
- data/CHANGES +11 -0
- data/Makefile +13 -0
- data/README.md +28 -13
- data/docs/Makefile +130 -0
- data/docs/_themes/LICENSE +45 -0
- data/docs/_themes/README.rst +25 -0
- data/docs/_themes/flask_theme_support.py +86 -0
- data/docs/_themes/kr/layout.html +32 -0
- data/docs/_themes/kr/relations.html +19 -0
- data/docs/_themes/kr/static/flasky.css_t +469 -0
- data/docs/_themes/kr/static/small_flask.css +70 -0
- data/docs/_themes/kr/theme.conf +7 -0
- data/docs/_themes/kr_small/layout.html +22 -0
- data/docs/_themes/kr_small/static/flasky.css_t +287 -0
- data/docs/_themes/kr_small/theme.conf +10 -0
- data/docs/changelog.rst +1 -0
- data/docs/conf.py +266 -0
- data/docs/faq.rst +42 -0
- data/docs/getting-started.rst +91 -0
- data/docs/index.rst +108 -0
- data/docs/make.bat +170 -0
- data/docs/src/pip-delete-this-directory.txt +5 -0
- data/docs/usage/accounts.rst +89 -0
- data/docs/usage/applications.rst +108 -0
- data/docs/usage/basics.rst +81 -0
- data/docs/usage/caller-ids.rst +45 -0
- data/docs/usage/conferences.rst +108 -0
- data/docs/usage/messages.rst +110 -0
- data/docs/usage/notifications.rst +70 -0
- data/docs/usage/phone-calls.rst +168 -0
- data/docs/usage/phone-numbers.rst +159 -0
- data/docs/usage/queues.rst +112 -0
- data/docs/usage/recordings.rst +96 -0
- data/docs/usage/sip.rst +103 -0
- data/docs/usage/token-generation.rst +81 -0
- data/docs/usage/transcriptions.rst +31 -0
- data/docs/usage/twiml.rst +70 -0
- data/docs/usage/validation.rst +71 -0
- data/examples/examples.rb +8 -5
- data/lib/twilio-ruby.rb +10 -0
- data/lib/twilio-ruby/rest/accounts.rb +1 -1
- data/lib/twilio-ruby/rest/instance_resource.rb +2 -1
- data/lib/twilio-ruby/rest/list_resource.rb +4 -1
- data/lib/twilio-ruby/rest/media.rb +14 -0
- data/lib/twilio-ruby/rest/messages.rb +12 -0
- data/lib/twilio-ruby/rest/sip.rb +12 -0
- data/lib/twilio-ruby/rest/sip/credential_lists.rb +11 -0
- data/lib/twilio-ruby/rest/sip/credential_lists/credentials.rb +6 -0
- data/lib/twilio-ruby/rest/sip/domains.rb +12 -0
- data/lib/twilio-ruby/rest/sip/domains/credential_list_mappings.rb +6 -0
- data/lib/twilio-ruby/rest/sip/domains/ip_access_control_list_mappings.rb +6 -0
- data/lib/twilio-ruby/rest/sip/ip_access_control_lists.rb +11 -0
- data/lib/twilio-ruby/rest/sip/ip_access_control_lists/ip_addresses.rb +6 -0
- data/lib/twilio-ruby/rest/sms.rb +1 -1
- data/lib/twilio-ruby/rest/usage/records.rb +1 -1
- data/lib/twilio-ruby/rest/utils.rb +1 -1
- data/lib/twilio-ruby/version.rb +1 -1
- data/spec/rest/message_spec.rb +12 -0
- metadata +52 -2
data/AUTHORS.md
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
Authors
|
2
|
+
=======
|
3
|
+
|
4
|
+
A huge thanks to all of our contributors:
|
5
|
+
|
6
|
+
|
7
|
+
- Adam Ballai
|
8
|
+
- Alexander Murmann & Ryan Spore
|
9
|
+
- Andrew Benton
|
10
|
+
- Caley Woods
|
11
|
+
- Carlos Diaz-Padron
|
12
|
+
- Connor Montgomery
|
13
|
+
- Doug Black
|
14
|
+
- Fiona Tay & Will Read
|
15
|
+
- Geoff Petrie
|
16
|
+
- Josh Hull
|
17
|
+
- Joël Franusic
|
18
|
+
- K Gautam Pai
|
19
|
+
- Kevin Burke
|
20
|
+
- Kyle Conroy
|
21
|
+
- Oscar Sanchez
|
22
|
+
- Rafael Chacon
|
23
|
+
- Ryan Spore
|
24
|
+
- vfrride
|
data/CHANGES
ADDED
data/Makefile
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
install:
|
2
|
+
gem build twilio-ruby.gemspec
|
3
|
+
gem install twilio-ruby-*.gem
|
4
|
+
|
5
|
+
test-install:
|
6
|
+
bundle install
|
7
|
+
|
8
|
+
test:
|
9
|
+
bundle exec rake spec
|
10
|
+
|
11
|
+
authors:
|
12
|
+
echo "Authors\n=======\n\nA huge thanks to all of our contributors:\n\n" > AUTHORS.md
|
13
|
+
git log --raw | grep "^Author: " | cut -d ' ' -f2- | cut -d '<' -f1 | sed 's/^/- /' | sort | uniq >> AUTHORS.md
|
data/README.md
CHANGED
@@ -5,18 +5,16 @@
|
|
5
5
|
|
6
6
|
Via rubygems.org:
|
7
7
|
|
8
|
-
```
|
9
|
-
|
8
|
+
```bash
|
9
|
+
gem install twilio-ruby
|
10
10
|
```
|
11
11
|
|
12
12
|
To build and install the development branch yourself from the latest source:
|
13
13
|
|
14
|
-
```
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
$ rake gem
|
19
|
-
$ gem install pkg/twilio-ruby-{version}
|
14
|
+
```bash
|
15
|
+
git clone git@github.com:twilio/twilio-ruby.git
|
16
|
+
cd twilio-ruby
|
17
|
+
make install
|
20
18
|
```
|
21
19
|
|
22
20
|
## Getting Started With REST
|
@@ -38,14 +36,24 @@ auth_token = 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy'
|
|
38
36
|
### Send an SMS
|
39
37
|
|
40
38
|
``` ruby
|
41
|
-
|
42
|
-
@client.account.sms.messages.create(
|
39
|
+
@client.account.messages.create(
|
43
40
|
:from => '+14159341234',
|
44
41
|
:to => '+16105557069',
|
45
42
|
:body => 'Hey there!'
|
46
43
|
)
|
47
44
|
```
|
48
45
|
|
46
|
+
### Send an MMS
|
47
|
+
|
48
|
+
``` ruby
|
49
|
+
@client.account.messages.create(
|
50
|
+
:from => '+14159341234',
|
51
|
+
:to => '+16105557069',
|
52
|
+
:body => 'Hey there!',
|
53
|
+
:media_url => 'http://example.com/smileyface.jpg',
|
54
|
+
)
|
55
|
+
```
|
56
|
+
|
49
57
|
### Do Some Stuff With Calls
|
50
58
|
|
51
59
|
``` ruby
|
@@ -53,7 +61,7 @@ auth_token = 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy'
|
|
53
61
|
@call = @client.account.calls.create(
|
54
62
|
:from => '+14159341234',
|
55
63
|
:to => '+18004567890',
|
56
|
-
:url => 'http://example.com/call-handler'
|
64
|
+
:url => 'http://example.com/call-handler',
|
57
65
|
)
|
58
66
|
|
59
67
|
# hangup a ringing call, but don't touch it if it's connected
|
@@ -69,6 +77,13 @@ auth_token = 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy'
|
|
69
77
|
@call.hangup
|
70
78
|
```
|
71
79
|
|
80
|
+
### List Calls after a certain time
|
81
|
+
|
82
|
+
``` ruby
|
83
|
+
# list calls made or received on or after May 13, 2013
|
84
|
+
@client.account.calls.list("start_time>" => "2013-05-13") # Notice we omit the "=" in the "start_time>=" parameter because it is automatically added
|
85
|
+
```
|
86
|
+
|
72
87
|
### Buy a Phone Number
|
73
88
|
|
74
89
|
``` ruby
|
@@ -123,7 +138,7 @@ require 'twilio-ruby'
|
|
123
138
|
|
124
139
|
# build up a response
|
125
140
|
response = Twilio::TwiML::Response.new do |r|
|
126
|
-
r.Say 'hello there', :voice => '
|
141
|
+
r.Say 'hello there', :voice => 'alice'
|
127
142
|
r.Dial :callerId => '+14159992222' do |d|
|
128
143
|
d.Client 'jenny'
|
129
144
|
end
|
@@ -138,7 +153,7 @@ This will print the following (except for the whitespace):
|
|
138
153
|
```
|
139
154
|
<?xml version="1.0" encoding="UTF-8"?>
|
140
155
|
<Response>
|
141
|
-
<Say voice="
|
156
|
+
<Say voice="alice">hello there</Say>
|
142
157
|
<Dial callerId="+14159992222">
|
143
158
|
<Client>jenny</Client>
|
144
159
|
</Dial>
|
data/docs/Makefile
ADDED
@@ -0,0 +1,130 @@
|
|
1
|
+
# Makefile for Sphinx documentation
|
2
|
+
#
|
3
|
+
|
4
|
+
# You can set these variables from the command line.
|
5
|
+
SPHINXOPTS =
|
6
|
+
SPHINXBUILD = sphinx-build
|
7
|
+
PAPER =
|
8
|
+
BUILDDIR = _build
|
9
|
+
|
10
|
+
# Internal variables.
|
11
|
+
PAPEROPT_a4 = -D latex_paper_size=a4
|
12
|
+
PAPEROPT_letter = -D latex_paper_size=letter
|
13
|
+
ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
|
14
|
+
|
15
|
+
.PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest
|
16
|
+
|
17
|
+
help:
|
18
|
+
@echo "Please use \`make <target>' where <target> is one of"
|
19
|
+
@echo " html to make standalone HTML files"
|
20
|
+
@echo " dirhtml to make HTML files named index.html in directories"
|
21
|
+
@echo " singlehtml to make a single large HTML file"
|
22
|
+
@echo " pickle to make pickle files"
|
23
|
+
@echo " json to make JSON files"
|
24
|
+
@echo " htmlhelp to make HTML files and a HTML help project"
|
25
|
+
@echo " qthelp to make HTML files and a qthelp project"
|
26
|
+
@echo " devhelp to make HTML files and a Devhelp project"
|
27
|
+
@echo " epub to make an epub"
|
28
|
+
@echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter"
|
29
|
+
@echo " latexpdf to make LaTeX files and run them through pdflatex"
|
30
|
+
@echo " text to make text files"
|
31
|
+
@echo " man to make manual pages"
|
32
|
+
@echo " changes to make an overview of all changed/added/deprecated items"
|
33
|
+
@echo " linkcheck to check all external links for integrity"
|
34
|
+
@echo " doctest to run all doctests embedded in the documentation (if enabled)"
|
35
|
+
|
36
|
+
clean:
|
37
|
+
-rm -rf $(BUILDDIR)/*
|
38
|
+
|
39
|
+
html:
|
40
|
+
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
|
41
|
+
@echo
|
42
|
+
@echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
|
43
|
+
|
44
|
+
dirhtml:
|
45
|
+
$(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml
|
46
|
+
@echo
|
47
|
+
@echo "Build finished. The HTML pages are in $(BUILDDIR)/dirhtml."
|
48
|
+
|
49
|
+
singlehtml:
|
50
|
+
$(SPHINXBUILD) -b singlehtml $(ALLSPHINXOPTS) $(BUILDDIR)/singlehtml
|
51
|
+
@echo
|
52
|
+
@echo "Build finished. The HTML page is in $(BUILDDIR)/singlehtml."
|
53
|
+
|
54
|
+
pickle:
|
55
|
+
$(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) $(BUILDDIR)/pickle
|
56
|
+
@echo
|
57
|
+
@echo "Build finished; now you can process the pickle files."
|
58
|
+
|
59
|
+
json:
|
60
|
+
$(SPHINXBUILD) -b json $(ALLSPHINXOPTS) $(BUILDDIR)/json
|
61
|
+
@echo
|
62
|
+
@echo "Build finished; now you can process the JSON files."
|
63
|
+
|
64
|
+
htmlhelp:
|
65
|
+
$(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) $(BUILDDIR)/htmlhelp
|
66
|
+
@echo
|
67
|
+
@echo "Build finished; now you can run HTML Help Workshop with the" \
|
68
|
+
".hhp project file in $(BUILDDIR)/htmlhelp."
|
69
|
+
|
70
|
+
qthelp:
|
71
|
+
$(SPHINXBUILD) -b qthelp $(ALLSPHINXOPTS) $(BUILDDIR)/qthelp
|
72
|
+
@echo
|
73
|
+
@echo "Build finished; now you can run "qcollectiongenerator" with the" \
|
74
|
+
".qhcp project file in $(BUILDDIR)/qthelp, like this:"
|
75
|
+
@echo "# qcollectiongenerator $(BUILDDIR)/qthelp/twilio-python2.qhcp"
|
76
|
+
@echo "To view the help file:"
|
77
|
+
@echo "# assistant -collectionFile $(BUILDDIR)/qthelp/twilio-python2.qhc"
|
78
|
+
|
79
|
+
devhelp:
|
80
|
+
$(SPHINXBUILD) -b devhelp $(ALLSPHINXOPTS) $(BUILDDIR)/devhelp
|
81
|
+
@echo
|
82
|
+
@echo "Build finished."
|
83
|
+
@echo "To view the help file:"
|
84
|
+
@echo "# mkdir -p $$HOME/.local/share/devhelp/twilio-python2"
|
85
|
+
@echo "# ln -s $(BUILDDIR)/devhelp $$HOME/.local/share/devhelp/twilio-python2"
|
86
|
+
@echo "# devhelp"
|
87
|
+
|
88
|
+
epub:
|
89
|
+
$(SPHINXBUILD) -b epub $(ALLSPHINXOPTS) $(BUILDDIR)/epub
|
90
|
+
@echo
|
91
|
+
@echo "Build finished. The epub file is in $(BUILDDIR)/epub."
|
92
|
+
|
93
|
+
latex:
|
94
|
+
$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
|
95
|
+
@echo
|
96
|
+
@echo "Build finished; the LaTeX files are in $(BUILDDIR)/latex."
|
97
|
+
@echo "Run \`make' in that directory to run these through (pdf)latex" \
|
98
|
+
"(use \`make latexpdf' here to do that automatically)."
|
99
|
+
|
100
|
+
latexpdf:
|
101
|
+
$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
|
102
|
+
@echo "Running LaTeX files through pdflatex..."
|
103
|
+
make -C $(BUILDDIR)/latex all-pdf
|
104
|
+
@echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex."
|
105
|
+
|
106
|
+
text:
|
107
|
+
$(SPHINXBUILD) -b text $(ALLSPHINXOPTS) $(BUILDDIR)/text
|
108
|
+
@echo
|
109
|
+
@echo "Build finished. The text files are in $(BUILDDIR)/text."
|
110
|
+
|
111
|
+
man:
|
112
|
+
$(SPHINXBUILD) -b man $(ALLSPHINXOPTS) $(BUILDDIR)/man
|
113
|
+
@echo
|
114
|
+
@echo "Build finished. The manual pages are in $(BUILDDIR)/man."
|
115
|
+
|
116
|
+
changes:
|
117
|
+
$(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) $(BUILDDIR)/changes
|
118
|
+
@echo
|
119
|
+
@echo "The overview file is in $(BUILDDIR)/changes."
|
120
|
+
|
121
|
+
linkcheck:
|
122
|
+
$(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck
|
123
|
+
@echo
|
124
|
+
@echo "Link check complete; look for any errors in the above output " \
|
125
|
+
"or in $(BUILDDIR)/linkcheck/output.txt."
|
126
|
+
|
127
|
+
doctest:
|
128
|
+
$(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest
|
129
|
+
@echo "Testing of doctests in the sources finished, look at the " \
|
130
|
+
"results in $(BUILDDIR)/doctest/output.txt."
|
@@ -0,0 +1,45 @@
|
|
1
|
+
Modifications:
|
2
|
+
|
3
|
+
Copyright (c) 2011 Kenneth Reitz.
|
4
|
+
|
5
|
+
|
6
|
+
Original Project:
|
7
|
+
|
8
|
+
Copyright (c) 2010 by Armin Ronacher.
|
9
|
+
|
10
|
+
|
11
|
+
Some rights reserved.
|
12
|
+
|
13
|
+
Redistribution and use in source and binary forms of the theme, with or
|
14
|
+
without modification, are permitted provided that the following conditions
|
15
|
+
are met:
|
16
|
+
|
17
|
+
* Redistributions of source code must retain the above copyright
|
18
|
+
notice, this list of conditions and the following disclaimer.
|
19
|
+
|
20
|
+
* Redistributions in binary form must reproduce the above
|
21
|
+
copyright notice, this list of conditions and the following
|
22
|
+
disclaimer in the documentation and/or other materials provided
|
23
|
+
with the distribution.
|
24
|
+
|
25
|
+
* The names of the contributors may not be used to endorse or
|
26
|
+
promote products derived from this software without specific
|
27
|
+
prior written permission.
|
28
|
+
|
29
|
+
We kindly ask you to only use these themes in an unmodified manner just
|
30
|
+
for Flask and Flask-related products, not for unrelated projects. If you
|
31
|
+
like the visual style and want to use it for your own projects, please
|
32
|
+
consider making some larger changes to the themes (such as changing
|
33
|
+
font faces, sizes, colors or margins).
|
34
|
+
|
35
|
+
THIS THEME IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
36
|
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
37
|
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
38
|
+
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
|
39
|
+
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
40
|
+
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
41
|
+
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
42
|
+
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
43
|
+
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
44
|
+
ARISING IN ANY WAY OUT OF THE USE OF THIS THEME, EVEN IF ADVISED OF THE
|
45
|
+
POSSIBILITY OF SUCH DAMAGE.
|
@@ -0,0 +1,25 @@
|
|
1
|
+
krTheme Sphinx Style
|
2
|
+
====================
|
3
|
+
|
4
|
+
This repository contains sphinx styles Kenneth Reitz uses in most of
|
5
|
+
his projects. It is a drivative of Mitsuhiko's themes for Flask and Flask related
|
6
|
+
projects. To use this style in your Sphinx documentation, follow
|
7
|
+
this guide:
|
8
|
+
|
9
|
+
1. put this folder as _themes into your docs folder. Alternatively
|
10
|
+
you can also use git submodules to check out the contents there.
|
11
|
+
|
12
|
+
2. add this to your conf.py: ::
|
13
|
+
|
14
|
+
sys.path.append(os.path.abspath('_themes'))
|
15
|
+
html_theme_path = ['_themes']
|
16
|
+
html_theme = 'flask'
|
17
|
+
|
18
|
+
The following themes exist:
|
19
|
+
|
20
|
+
**kr**
|
21
|
+
the standard flask documentation theme for large projects
|
22
|
+
|
23
|
+
**kr_small**
|
24
|
+
small one-page theme. Intended to be used by very small addon libraries.
|
25
|
+
|
@@ -0,0 +1,86 @@
|
|
1
|
+
# flasky extensions. flasky pygments style based on tango style
|
2
|
+
from pygments.style import Style
|
3
|
+
from pygments.token import Keyword, Name, Comment, String, Error, \
|
4
|
+
Number, Operator, Generic, Whitespace, Punctuation, Other, Literal
|
5
|
+
|
6
|
+
|
7
|
+
class FlaskyStyle(Style):
|
8
|
+
background_color = "#f8f8f8"
|
9
|
+
default_style = ""
|
10
|
+
|
11
|
+
styles = {
|
12
|
+
# No corresponding class for the following:
|
13
|
+
#Text: "", # class: ''
|
14
|
+
Whitespace: "underline #f8f8f8", # class: 'w'
|
15
|
+
Error: "#a40000 border:#ef2929", # class: 'err'
|
16
|
+
Other: "#000000", # class 'x'
|
17
|
+
|
18
|
+
Comment: "italic #8f5902", # class: 'c'
|
19
|
+
Comment.Preproc: "noitalic", # class: 'cp'
|
20
|
+
|
21
|
+
Keyword: "bold #004461", # class: 'k'
|
22
|
+
Keyword.Constant: "bold #004461", # class: 'kc'
|
23
|
+
Keyword.Declaration: "bold #004461", # class: 'kd'
|
24
|
+
Keyword.Namespace: "bold #004461", # class: 'kn'
|
25
|
+
Keyword.Pseudo: "bold #004461", # class: 'kp'
|
26
|
+
Keyword.Reserved: "bold #004461", # class: 'kr'
|
27
|
+
Keyword.Type: "bold #004461", # class: 'kt'
|
28
|
+
|
29
|
+
Operator: "#582800", # class: 'o'
|
30
|
+
Operator.Word: "bold #004461", # class: 'ow' - like keywords
|
31
|
+
|
32
|
+
Punctuation: "bold #000000", # class: 'p'
|
33
|
+
|
34
|
+
# because special names such as Name.Class, Name.Function, etc.
|
35
|
+
# are not recognized as such later in the parsing, we choose them
|
36
|
+
# to look the same as ordinary variables.
|
37
|
+
Name: "#000000", # class: 'n'
|
38
|
+
Name.Attribute: "#c4a000", # class: 'na' - to be revised
|
39
|
+
Name.Builtin: "#004461", # class: 'nb'
|
40
|
+
Name.Builtin.Pseudo: "#3465a4", # class: 'bp'
|
41
|
+
Name.Class: "#000000", # class: 'nc' - to be revised
|
42
|
+
Name.Constant: "#000000", # class: 'no' - to be revised
|
43
|
+
Name.Decorator: "#888", # class: 'nd' - to be revised
|
44
|
+
Name.Entity: "#ce5c00", # class: 'ni'
|
45
|
+
Name.Exception: "bold #cc0000", # class: 'ne'
|
46
|
+
Name.Function: "#000000", # class: 'nf'
|
47
|
+
Name.Property: "#000000", # class: 'py'
|
48
|
+
Name.Label: "#f57900", # class: 'nl'
|
49
|
+
Name.Namespace: "#000000", # class: 'nn' - to be revised
|
50
|
+
Name.Other: "#000000", # class: 'nx'
|
51
|
+
Name.Tag: "bold #004461", # class: 'nt' - like a keyword
|
52
|
+
Name.Variable: "#000000", # class: 'nv' - to be revised
|
53
|
+
Name.Variable.Class: "#000000", # class: 'vc' - to be revised
|
54
|
+
Name.Variable.Global: "#000000", # class: 'vg' - to be revised
|
55
|
+
Name.Variable.Instance: "#000000", # class: 'vi' - to be revised
|
56
|
+
|
57
|
+
Number: "#990000", # class: 'm'
|
58
|
+
|
59
|
+
Literal: "#000000", # class: 'l'
|
60
|
+
Literal.Date: "#000000", # class: 'ld'
|
61
|
+
|
62
|
+
String: "#4e9a06", # class: 's'
|
63
|
+
String.Backtick: "#4e9a06", # class: 'sb'
|
64
|
+
String.Char: "#4e9a06", # class: 'sc'
|
65
|
+
String.Doc: "italic #8f5902", # class: 'sd' - like a comment
|
66
|
+
String.Double: "#4e9a06", # class: 's2'
|
67
|
+
String.Escape: "#4e9a06", # class: 'se'
|
68
|
+
String.Heredoc: "#4e9a06", # class: 'sh'
|
69
|
+
String.Interpol: "#4e9a06", # class: 'si'
|
70
|
+
String.Other: "#4e9a06", # class: 'sx'
|
71
|
+
String.Regex: "#4e9a06", # class: 'sr'
|
72
|
+
String.Single: "#4e9a06", # class: 's1'
|
73
|
+
String.Symbol: "#4e9a06", # class: 'ss'
|
74
|
+
|
75
|
+
Generic: "#000000", # class: 'g'
|
76
|
+
Generic.Deleted: "#a40000", # class: 'gd'
|
77
|
+
Generic.Emph: "italic #000000", # class: 'ge'
|
78
|
+
Generic.Error: "#ef2929", # class: 'gr'
|
79
|
+
Generic.Heading: "bold #000080", # class: 'gh'
|
80
|
+
Generic.Inserted: "#00A000", # class: 'gi'
|
81
|
+
Generic.Output: "#888", # class: 'go'
|
82
|
+
Generic.Prompt: "#745334", # class: 'gp'
|
83
|
+
Generic.Strong: "bold #000000", # class: 'gs'
|
84
|
+
Generic.Subheading: "bold #800080", # class: 'gu'
|
85
|
+
Generic.Traceback: "bold #a40000", # class: 'gt'
|
86
|
+
}
|
@@ -0,0 +1,32 @@
|
|
1
|
+
{%- extends "basic/layout.html" %}
|
2
|
+
{%- block extrahead %}
|
3
|
+
{{ super() }}
|
4
|
+
{% if theme_touch_icon %}
|
5
|
+
<link rel="apple-touch-icon" href="{{ pathto('_static/' ~ theme_touch_icon, 1) }}" />
|
6
|
+
{% endif %}
|
7
|
+
<link media="only screen and (max-device-width: 480px)" href="{{
|
8
|
+
pathto('_static/small_flask.css', 1) }}" type= "text/css" rel="stylesheet" />
|
9
|
+
{% endblock %}
|
10
|
+
{%- block relbar2 %}{% endblock %}
|
11
|
+
{%- block footer %}
|
12
|
+
<div class="footer">
|
13
|
+
© Copyright {{ copyright }}.
|
14
|
+
</div>
|
15
|
+
<a href="https://github.com/twilio/twilio-python">
|
16
|
+
<img style="position: absolute; top: 0; right: 0; border: 0;" src="http://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png" alt="Fork me on GitHub" />
|
17
|
+
</a>
|
18
|
+
<script type="text/javascript">
|
19
|
+
try {
|
20
|
+
var _gaq = _gaq || [];
|
21
|
+
_gaq.push(['_setAccount', 'UA-2900316-11']);
|
22
|
+
_gaq.push(['_trackPageview']);
|
23
|
+
|
24
|
+
(function() {
|
25
|
+
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
|
26
|
+
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
|
27
|
+
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
|
28
|
+
})();
|
29
|
+
} catch(err) {}
|
30
|
+
</script>
|
31
|
+
|
32
|
+
{%- endblock %}
|