DevNet Associate DEVASC 200-901 Official Certification Guide by Adrian Iliesiu (z-lib.org)

(andrew) #1
MethodAPIDescription

GE
T

https://webexapis.com/v1/rooms List all the
rooms

PO
ST

https://webexapis.com/v1/rooms Create a new
room

GE
T

https://webexapis.com/v1/rooms/
{roomId}

Get room
details

GE
T

https://webexapis.com/v1/rooms/
{roomId}/meetingInfo

Get room
meeting
details

PU
T

https://webexapis.com/v1/rooms/
{roomId}

Update room
details

DE
LE
TE

https://webexapis.com/v1/rooms/
{roomId}

Delete a room

You can use the Rooms API to create a room. When you
do, an authenticated user is automatically added as a
member of the room. To create a room, you can use the
POST method and the


API https://webexapis.com/v1/rooms.


Example 10-2 show Python request code that creates a
room with the name DevAsc Team Room. It initializes
variables such as the base URL, the payload, and the
headers, and it calls the request. The header consists of
the bearer token of the authenticated user or the
integration along with other parameters.


Example 10-2 Python Request to Create a New Room

Click here to view code image

Free download pdf