FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
python-sdks/examples/api.py at main · livekit/python-sdks · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
livekit
/
python-sdks
Public
Notifications
You must be signed in to change notification settings
Fork
132
Star
380
Code
Issues
16
Pull requests
28
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
python-sdks
/
examples
/
api.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
18 lines (14 loc) · 465 Bytes
Breadcrumbs
python-sdks
/
examples
/
api.py
Copy path
File metadata and controls
18 lines (14 loc) · 465 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
from
livekit
import
api
import
asyncio
async
def
main
():
# will automatically use LIVEKIT_URL, LIVEKIT_API_KEY and LIVEKIT_API_SECRET env vars
lkapi
=
api
.
LiveKitAPI
()
room_info
=
await
lkapi
.
room
.
create_room
(
api
.
CreateRoomRequest
(
name
=
"my-room"
),
)
print
(
room_info
)
room_list
=
await
lkapi
.
room
.
list_rooms
(
api
.
ListRoomsRequest
())
print
(
room_list
)
await
lkapi
.
aclose
()
if
__name__
==
"__main__"
:
asyncio
.
run
(
main
())
Back
|
FazBrowse Home
|
New Git URL