Skip to content

Commit 1ed821c

Browse files
committed
add initial_layout_class_list to readme
1 parent 3fe2029 commit 1ed821c

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

README.rst

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,9 @@ Generating Tokens
7575

7676
Once a Session is created, you can start generating Tokens for clients to use when connecting to it.
7777
You can generate a token either by calling the ``opentok.generate_token(session_id)`` method or by
78-
calling the ``session.generate_token()`` method on a ``Session`` instance after creating it. There
79-
is a set of optional keyword parameters: ``role``, ``expire_time``, and ``data``.
78+
calling the ``session.generate_token()`` method on a ``Session`` instance after creating it. Both
79+
have a set of optional keyword parameters: ``role``, ``expire_time``, ``data``, and
80+
``initial_layout_class_list``.
8081

8182
.. code:: python
8283
@@ -89,7 +90,8 @@ is a set of optional keyword parameters: ``role``, ``expire_time``, and ``data``
8990
# Set some options in a token
9091
token = session.generate_token(role=Roles.moderator,
9192
expire_time=int(time.time()) + 10,
92-
data=u'name=Johnny')
93+
data=u'name=Johnny'
94+
initial_layout_class_list=[u'focus'])
9395
9496
Working with Archives
9597
~~~~~~~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)