使用PHP我需要获得公司WebEx会议列表,并在网页上显示它们
我在此页面上尝试了代码:https://developer.cisco.com/site/webex-developer/develoveling-test/xml-api/sample-code/
但失败了。
<serv:header>
<serv:response>
<serv:result>FAILURE</serv:result>
<serv:reason>Failed to get SiteUrl</serv:reason>
<serv:gsbStatus>PRIMARY</serv:gsbStatus>
<serv:exceptionID>010000</serv:exceptionID>
</serv:response>
</serv:header>
<serv:body>
错误消息是找不到siteurl。我正在使用的SiteUrl是CompanyName.webex.com-当我将该URL放入浏览器中时,它将转到我们的Webex页面,所以它似乎是正确的。
我找到了以下内容:http://joshuamcginnis.com/webex/并尝试了(使用真实凭据),但是它给出了500个错误,我无法访问日志。
这两个示例都非常老,我正在努力寻找最新的例子。
如果我将https://company.webex.com/WBXService/XMLService
放入浏览器中,我会收到成功消息
任何人都可以建议如何在PHP或JavaScript
根据链接中的PHP示例,您必须使用以下内容:
<securityContext>
<webExID>YourCiscoUsername@example.com</webExID>
<password>YourCiscoPassword</password>
<siteID>243585</siteID>
<partnerID>g0webx!</partnerID>
</securityContext>
尝试使用" SiteName"而不是" SiteID",如以下内容:
<securityContext>
<webExID>YourCiscoUsername@example.com</webExID>
<password>YourCiscoPassword</password>
<siteName>go</siteName>
<partnerID>g0webx!</partnerID>
</securityContext>
您可以使用SiteID或SiteName不明显,但是看起来该SitiD INID现在不适用于该演示网站。他们的Java和.NET示例正在使用SiteName。
现在,如果您向https://go.webex.com/wbxservice/xmlservice
提出请求,则必须在SiteName中使用" Go"但是,如果要提出请求,则必须使用" apidemoeu"https://apidemoeu.webex.com/wbxservice/xmlservice
它们似乎都是演示站点。
并有效地"无法获取SiteUrl"是如果SiteName或SiteID中传递的值与现有站点不符,则返回的错误。