ExamGecko
Question list
Search
Search

Question 74 - 200-901 discussion

Report
Export

FILL BLANK Fill in the blanks to complete the Python script to update the Webex Teams membership of a room using the Python requests library.

import requests

url = “https://api.ciscospark.com/v1/memberships/

Y2lzY29zcGFyazov379971079INISVAvOTJiM2RkOWEtNjc1ZC00YTQxLThjNDEtMmFiZGY4OWY0NGY0OjExNzJkNmYwL TJIYzMtMTFIOS1iOWI3LWNmMjg3MTJhYTkzNw” my_token = “AbCdEf123456”

payload = “{\n \”isModerator\”: true\n}” headers = {

‘Authorization’: ‘Bearer’ + my_token,

‘Content-Type’: ‘application/json’

}

response = requests.__________ (“PATCH”, url, headers=__________, data =__________ )

print(response.text.encode(‘utf8’))

A.
Answers
A.
Suggested answer: A

Explanation:

Answer: A

Explanation:


response = requests.request(“PATCH”, url, headers= headers, data = payload ) print(response.text.encode(‘utf8’))

asked 07/10/2024
Parita Malbari
48 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first