exam questions

Exam 300-835 All Questions

View all questions & answers for the 300-835 exam

Exam 300-835 topic 1 question 26 discussion

Actual exam question from Cisco's 300-835
Question #: 26
Topic #: 1
[All 300-835 Questions]

DRAG DROP -
Drag and drop the code snippets into the correct order to create a Python Webex Teams REST API script that performs this sequence of tasks: create a Space, add a user to the Space, post the word "test" in the Space. Assume that the Python "requests" module has already been imported.
Select and Place:

Show Suggested Answer Hide Answer
Suggested Answer:

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Nicetomeetyou
Highly Voted 9 months, 2 weeks ago
This is the correct script: import requests token = "put token here" headers = {"Content-type": "application/json","Authorization":f"Bearer {token}"} url = "https://webexapis.com/v1" payload = {"title":"test"} resp1 = requests.post(url + "/rooms", headers=headers, json=payload) payload = {"roomId": resp1.json()['id'], "personEmail": "[email protected]"} requests.post(url + "/memberships", headers=headers, json=payload) payload = {'roomId': resp1.json()['id'], "text":"test"} resp2 = requests.post(url + "/messages", headers=headers, json=payload) if resp2.status_code == 200: print("succes!")
upvoted 7 times
...
[Removed]
Highly Voted 1 year, 3 months ago
the answer is wrong, the 2nd and 3rd are swapped
upvoted 6 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...