使用WebEX XML API來啟動會議室
https://reqbin.com/req/3mrxjgw4
https://www.webtoolkitonline.com/xml-formatter.html
<?xml version="1.0" encoding="UTF-8"?>
<serv:message
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<header>
<securityContext>
<siteName>{webEXSiteName}</siteName>
<webExID>{webEXAccount}</webExID>
<password>{webEXPassword}</password>
</securityContext>
</header>
<body>
<bodyContent xsi:type="java:com.webex.service.binding.meeting.CreateMeeting">
<accessControl>
<isPublic>false</isPublic>
<meetingPassword>{meetingPassword}</meetingPassword>
</accessControl>
<metaData>
<confName>{confName}</confName>
<agenda>{agenda}</agenda>
</metaData>
<participants>
<maxUserNumber>{maxUserNumber}</maxUserNumber>
<attendees>{attendee}</attendees>
</participants>
<enableOptions>
<chat>true</chat>
<poll>true</poll>
<audioVideo>true</audioVideo>
<attendeeList>true</attendeeList>
<fileShare>true</fileShare>
<presentation>true</presentation>
<applicationShare>true</applicationShare>
<desktopShare>true</desktopShare>
<webTour>true</webTour>
<meetingRecord>false</meetingRecord>
<annotation>false</annotation>
<importDocument>false</importDocument>
<saveDocument>false</saveDocument>
<printDocument>false</printDocument>
<pointer>false</pointer>
<switchPage>false</switchPage>
<fullScreen>false</fullScreen>
<thumbnail>false</thumbnail>
<zoom>false</zoom>
<copyPage>false</copyPage>
<rcAppShare>true</rcAppShare>
<rcDesktopShare>true</rcDesktopShare>
<rcWebTour>true</rcWebTour>
<javaClient>false</javaClient>
<nativeClient>false</nativeClient>
<autoRecord>true</autoRecord>
<attendeeRecordMeeting>false</attendeeRecordMeeting>
<voip>true</voip>
<faxIntoMeeting>false</faxIntoMeeting>
<enableReg>false</enableReg>
<supportQandA>true</supportQandA>
<supportFeedback>true</supportFeedback>
<supportBreakoutSessions>false</supportBreakoutSessions>
<supportPanelists>false</supportPanelists>
<supportRemoteComputer>true</supportRemoteComputer>
<supportShareWebContent>true</supportShareWebContent>
<supportUCFWebPages>true</supportUCFWebPages>
<supportUCFRichMedia>true</supportUCFRichMedia>
<autoDeleteAfterMeetingEnd>false</autoDeleteAfterMeetingEnd>
<viewAnyDoc>false</viewAnyDoc>
<viewAnyPage>false</viewAnyPage>
<allowContactPrivate>false</allowContactPrivate>
<chatHost>true</chatHost>
<chatPresenter>true</chatPresenter>
<chatAllAttendees>true</chatAllAttendees>
<!--<multiVideo>true</multiVideo>-->
<notes>true</notes>
<closedCaptions>false</closedCaptions>
<singleNote>false</singleNote>
<sendFeedback>false</sendFeedback>
<displayQuickStartHost>true</displayQuickStartHost>
<displayQuickStartAttendees>false</displayQuickStartAttendees>
<supportE2E>false</supportE2E>
<supportPKI>false</supportPKI>
<!--<HQvideo>true</HQvideo>-->
<HDvideo>false</HDvideo>
<viewVideoThumbs>true</viewVideoThumbs>
</enableOptions>
<schedule>
<startDate>{startDate}</startDate>
<timeZoneID>48</timeZoneID>
<timeZone>GMT+08:00, Taipei (Hong Kong)</timeZone>
<duration>{duration}</duration>
<openTime>900</openTime>
<hostWebExID>{webEXAccount}</hostWebExID>
<templateFilePath></templateFilePath>
<showFilePath></showFilePath>
<showFileStartMode>true</showFileStartMode>
<showFileContPlayFlag>false</showFileContPlayFlag>
<showFileInterVal>30</showFileInterVal>
<entryExitTone>2</entryExitTone>
<extNotifyTime>0</extNotifyTime>
<joinTeleconfBeforeHost>false</joinTeleconfBeforeHost>
<firstAttendeeAsPresenter>true</firstAttendeeAsPresenter>
<allowAnyoneHostMeeting>false</allowAnyoneHostMeeting>
</schedule>
<repeat>
<repeatType>NO_REPEAT</repeatType>
</repeat>
<remind>
<enableReminder>true</enableReminder>
<emails>
<email>test@gmail.com</email>
</emails>
<sendEmail>true</sendEmail>
<sendMobile>false</sendMobile>
<daysAhead>0</daysAhead>
<hoursAhead>0</hoursAhead>
<minutesAhead>15</minutesAhead>
</remind>
<attendeeOptions>
<request>false</request>
<registration>false</registration>
<auto>false</auto>
<participantLimit>0</participantLimit>
<excludePassword>false</excludePassword>
<joinRequiresAccount>false</joinRequiresAccount>
<emailInvitations>true</emailInvitations>
</attendeeOptions>
</bodyContent>
</body>
</serv:message>
成功回傳
<?xml version="1.0" encoding="UTF-8"?>
<serv:message
xmlns:serv="http://www.webex.com/schemas/2002/06/service"
xmlns:com="http://www.webex.com/schemas/2002/06/common"
xmlns:meet="http://www.webex.com/schemas/2002/06/service/meeting"
xmlns:att="http://www.webex.com/schemas/2002/06/service/attendee">
<serv:header>
<serv:response>
<serv:result>SUCCESS</serv:result>
<serv:gsbStatus>PRIMARY</serv:gsbStatus>
</serv:response>
</serv:header>
<serv:body>
<serv:bodyContent xsi:type="meet:createMeetingResponse"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<meet:meetingkey>574390442</meet:meetingkey>
<meet:meetingPassword>j6vMZh5cdw2</meet:meetingPassword>
<meet:iCalendarURL>
<serv:host>https://XX-XX.webex.com/XX-XX/j.php?MTID=mf2cb506d3176da455ee382baa7415845</serv:host>
<serv:attendee>https://XX-XX.webex.com/XX-XX/j.php?MTID=mc4d48f346e78f7cbbb3e935f7ccf64af</serv:attendee>
</meet:iCalendarURL>
<meet:guestToken>f64414840ebe1787771d754eeaf5e1fd</meet:guestToken>
</serv:bodyContent>
</serv:body>
</serv:message>
失敗回傳
<?xml version="1.0" encoding="UTF-8"?>
<serv:message
xmlns:serv="http://www.webex.com/schemas/2002/06/service"
xmlns:com="http://www.webex.com/schemas/2002/06/common"
xmlns:meet="http://www.webex.com/schemas/2002/06/service/meeting"
xmlns:att="http://www.webex.com/schemas/2002/06/service/attendee">
<serv:header>
<serv:response>
<serv:result>FAILURE</serv:result>
<serv:reason>Session start time should be later than current time</serv:reason>
<serv:gsbStatus>PRIMARY</serv:gsbStatus>
<serv:exceptionID>060016</serv:exceptionID>
</serv:response>
</serv:header>
<serv:body>
<serv:bodyContent/>
</serv:body>
</serv:message>
沒有留言:
張貼留言