Question 64 of 100 from exam 350-901-DEVCOR: Developing Applications Using Cisco Core Platforms and APIs

Question 64 of 100 from exam 350-901-DEVCOR: Developing Applications Using Cisco Core Platforms and APIs

Question

DRAG DROP -

#!/usr/bin/python3
import requests, sys

head = { ‘Content-Type”: ‘item’,
‘Authorization’: ‘Bearer NWU4N}QOODJKZTItM. . .4~ad72cae0e10£

res = requests.post (url = ‘https://api.ciscopark.com/v1/item)2’ ,
headers = head, json = { ‘H€8M)B’: sys.argv[1] })

spaceId = res. json() [‘id’]

members = [ ‘johndoe@example.com’, ‘janedoe@example.com’ ]
for member in members:
res = requests.post (url=‘https: //api.ciscopark.com/v1/item4’ ,
headers = head,
json = { ‘roomId’ spaceId, Miltéml/5%: member})

}

Refer to the exhibit above and click on the resource tabs in the top left corner to view resources to help with this question.

Create a Room

Creates a room. The authenticated user is automatically added as a member of the
room. See the Memberships API to learn how to add more people to the room.

To create a 1:1 room, use the Create Messages endpoint to send a message

directly to another person by using the toPersonId or toPersontmail

parameters.
/v1/rooms
Body Parameters

title

sting Required
A.user-friendly name for the room

teamId

tring

The ID for the team with which this room is associated.
Create a Membership
‘Add someone to a room by Person ID or email address; optionally making them a
moderator.

/vi/memberships

Body Parameters

roomid
string. Required
The room ID.

personid

The person ID.

personEmail

The email address of the person.

isModerator
Whether or not the participant is a room moderator.

A developer is creating a Python Script that will use the Webex Teams REST API to automatically create a new collaboration space with him and his team leads on-demand via a Linux terminal command.

Drag and drop the code snippets from the left onto the numbers on the right that match the missing sections in the exhibit to complete the script.

Not all code snippets are used.

Select and Place:

Answer Area

userName

title

personEmail

memberships

spaces

7

Explanations

Answer Area

application/xml application/json
applicationjjson rooms
name title
userName memberships
title personEmail
personEmail
members
memberships
rooms

spaces