300-835 · Question #28
300-835 Question #28: Real Exam Question with Answer & Explanation
import requests, datetime timestamp = datetime.datetime.now() startdate = timestamp.strftime('%m/%d/%Y %H:%M:%S') xml = f'''<message-header><securityContext> <siteName>apidemoex</siteName> <webExID>[email protected]</webExID> <token>AAABh89MIUYAGqAKkdKFUOhMmJU2XOPMR09SSVRITVB=<
Question
Drag and Drop Question. A small Python script is constructed that creates a Webex Meeting for John Doe scheduled for the current time. Drag and drop the code snippets at the bottom onto the areas of the source code exhibit to create a program. Not all options are used.
Explanation
import requests, datetime timestamp = datetime.datetime.now() startdate = timestamp.strftime('%m/%d/%Y %H:%M:%S') xml = f'''<message-header><securityContext> <siteName>apidemoex</siteName> <webExID>[email protected]</webExID> <token>AAABh89MIUYAGqAKkdKFUOhMmJU2XOPMR09SSVRITVB=</token> </securityContext></header>
<body><bodyContent xsi:type="java:com.webex.service.binding.meeting.CreateMeeting"> <schedule><startDate>{startdate}</startDate></schedule> <metadata> <confName>Sample Meeting</confName> <meetingType>Training Center</meetingType> </metadata> </bodyContent></body>'''print(requests.post('https://api.webex.com/WBXService/XMLService', xml))
Topics
Community Discussion
No community discussion yet for this question.