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"""
2display_rooms.py
3
4This example shows how to display all the rooms in the lobby.
5
6This example does the same as the examples/display_rooms.py script,
7but this time we're using the Talkomatic REST API to get the room information.
8"""
9
10from talkomatic.api.v1 import get_rooms # we import the RoomInfo class from the Talkomatic API module
11
12
13rooms = get_rooms() # we get the room information using the get method
14
15for room in rooms: # we print all of the rooms!
16 print(room)