Skip to content

Commit b626ca2

Browse files
committed
fix rSt code highlighting syntax
1 parent 1bbda63 commit b626ca2

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ address, and ``p2p`` which is a boolean. This method returns a ``Session`` objec
5858
``session_id`` attribute is useful when saving to a persistent store (e.g. database).
5959

6060
.. code:: python
61+
6162
# Just a plain Session
6263
session = opentok.create_session()
6364
# A p2p Session
@@ -77,6 +78,7 @@ calling the ``session.generate_token()`` method on a ``Session`` instance after
7778
is a set of optional keyword parameters: ``role``, ``expire_time``, and ``data``.
7879

7980
.. code:: python
81+
8082
# Generate a Token from just a session_id (fetched from a database)
8183
token = opentok.generate_token(session_id)
8284
# Generate a Token by calling the method on the Session (returned from create_session)
@@ -97,6 +99,7 @@ This method will return an ``Archive`` instance. Note that you can only start an
9799
a Session that has clients connection.
98100

99101
.. code:: python
102+
100103
archive = opentok.start_archive(session_id, name=u'Important Presentation')
101104
102105
# Store this archive_id in the database
@@ -106,6 +109,7 @@ You can stop the recording of a started Archive using the ``opentok.stop_archive
106109
method. You can also do this using the ``archive.stop()`` method of an ``Archive`` instance.
107110

108111
.. code:: python
112+
109113
# Stop an Archive from an archive_id (fetched from database)
110114
opentok.stop_archive(archive_id)
111115
# Stop an Archive from an instance (returned from opentok.start_archive)
@@ -115,12 +119,14 @@ To get an ``Archive`` instance (and all the information about it) from an archiv
115119
``opentok.get_archive(archive_id)`` method.
116120

117121
.. code:: python
122+
118123
archive = opentok.get_archive(archive_id)
119124
120125
To delete an Archive, you can call the ``opentok.delete_archive(archive_id)`` method or the
121126
``archive.delete()`` method of an ``Archive`` instance.
122127

123128
.. code:: python
129+
124130
# Delete an Archive from an archive ID (fetched from database)
125131
opentok.delete_archive(archive_id)
126132
# Delete an Archive from an Archive instance (returned from opentok.start_archive or
@@ -133,6 +139,7 @@ done using the ``opentok.list_archives()`` method. There are two optional keywor
133139
instance of the ``ArchiveList`` class.
134140

135141
.. code:: python
142+
136143
archive_list = opentok.list_archive()
137144
138145
# Get a specific Archive from the list

0 commit comments

Comments
 (0)