04-25-2014 05:20 AM
Hi,
I am using webex free trail account. I am now in development of an application that would make xml request using xml api in webex. Inorder to do that i need site id and partner id to construct the xml request file. Can anybody help me to find the site id of free trail webex meeting site.
Solved! Go to Solution.
05-25-2017 04:42 AM
Hi Guys,
I am trying to run this sample code : https://developer.cisco.com/fileMedia/download/74a70dc3-7a64-449c-af9b-2ae7b7076431
Not sure what site id and partnerID I would need to place here and also not sure from where I can get the Webex username and Webex password? Can someone please help me out so that at least I can run this example code?
05-25-2017 03:38 PM
That old sample is no longer functional due to changes, try this one:
<?php
header("Content-Type: text/xml");
$sitename = "apidemoeu"; //Sitename is the subdomain of a WebEx URL. ex: sitename for https://apidemoeu.webex.com is apidemoeu
$username = "username";
$password = "password";
$XML = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>";
$XML .="<serv:message xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">";
$XML .=" <header>";
$XML .=" <securityContext>";
$XML .=" <webExID>$username</webExID>";
$XML .=" <password>$password</password>";
$XML .=" <siteName>$sitename</siteName>";
$XML .=" <returnAdditionalInfo>TRUE</returnAdditionalInfo>";
$XML .=" </securityContext>";
$XML .=" </header>";
$XML .=" <body>";
$XML .=" <bodyContent xsi:type=\"java:com.webex.service.binding.site.GetSite\">";
$XML .=" </bodyContent>";
$XML .=" </body>";
$XML .="</serv:message>";
$request = stream_context_create(array("http"=>array("method"=>"POST","header"=>"Content-Type:text/xml","content"=>$XML)));
$response = file_get_contents("https://$sitename.webex.com/WBXService/XMLService", false, $request);
echo $response;
?>
Username/Password are the login credentials used to login to your WebEx Site.
05-30-2017 02:36 AM
Hi Ryan,
Thanks for the response. Really appreciate it!
Sorry as I am new to webex devleopment; can you please let me know how I could get my WebEx site and then username/password for the same? I am using sandbox at the moment and I just need to check the sample code at the moment. Later I would need to do a complete integration for my client.
Regards,
VJ
05-30-2017 09:33 AM
The credentials are the same credentials provided to you for your sandbox, they will be the same credentials that you use in your webbrowser.. Obtaining a site of your own requires interaction with Sales, if you signup for our Gold Developer Program (GDP) then they will provide you with your own site, on our test cluster, with full administrative access.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide