talkomatic.py
0.1.2
An easy-to-use Python versatile wrapper for the Talkomatic Bot interface ensuring best practices for making bots, and handling the REST API.
Loading...
Searching...
No Matches
display_rooms.py
Go to the documentation of this file.
1
"""
2
display_rooms.py
3
4
This example shows how to display all the rooms in the lobby.
5
6
This example does the same as the examples/display_rooms.py script,
7
but this time we're using the Talkomatic REST API to get the room information.
8
"""
9
10
from
talkomatic.api.v1
import
get_rooms
# we import the RoomInfo class from the Talkomatic API module
11
12
13
rooms = get_rooms()
# we get the room information using the get method
14
15
for
room
in
rooms:
# we print all of the rooms!
16
print(room)
talkomatic.api.v1
Definition
__init__.py:1
examples
api
display_rooms.py
Generated by
1.13.2