12-21-2014 11:57 AM
Hi,
I'm trying to start a WebEx meeting from a webpage that is triggered by a system. When I try a simple for and hit submit I get an Access Denied Message in the URL.
PHP form used:
<form action="https://apidemoeu.webex.com/apidemoeu/m.php?AT=SM&MN='Yaghi'&PW='123456'" method="post">
<input type="submit">
</form>
12-22-2014 11:17 AM
Hello,
This command requires that you authenticate as a host first. You can log in via URL API using p.php command AT=LI. Note that any API command that includes a password must be submitted using HTTPS POST instead of GET, so you may want to look at building an HTML form to submit your login request, or log in manually before testing the m.php command.
12-22-2014 11:33 AM
Hi Nathan,
When I try to authenticate I get a blank page with just "null" written on the top left.
<form action=""https://apidemoeu.webex.com/apidemoeu/p.php?AT=LI&WID=yyaghi&PW=123456 method="post">
<input type="submit">
</form>
12-22-2014 11:44 AM
Hello,
URL Variables, when send as part of the URL, are being sent in GET method. Your HTML form should look more like the following:
<form action=""https://apidemoeu.webex.com/apidemoeu/p.php" method="post">
<input type="hidden" name="AT" value="LI">
<input type="hidden" name="WID" value="yyaghi">
<input type="hidden" name="PW" value="123456">
<input type="submit">
</form>
Same should be done for your m.php command, as I just noticed you had a password there too:
<form action="https://apidemoeu.webex.com/apidemoeu/m.php" method="post">
<input type="hidden" name="AT" value="SM">
<input type="hidden" name="MN" value="Yaghi">
<input type="hidden" name="PW" value="123456">
<input type="submit">
</form>
12-22-2014 02:25 PM
Ah. Ok, that makes sense.
The WebEx ID is one's username correct? When I try I get bad webex ID or password.
12-22-2014 02:44 PM
WebEx ID is username. You would use the same username and password that you use when logging in to apidemeu.webex.com directly. Take care to use HTTPS POST, password will be stripped out of GET requests and fail.
12-22-2014 02:57 PM
Ya. Its failing. Could it potentially be failing because of SSO?
12-22-2014 03:02 PM
Hello,
SSO is not enabled on apidemoeu.webex.com. Have you tried logging in directly? Note that your login credentials on www.webexdeveloper.com are separate from apidemoeu.webex.com.
12-22-2014 03:07 PM
I was trying on another sub domain. It works with apidemoeu. For SSO enabled URL wouldn't work and I need to use XML right?
12-22-2014 05:52 PM
For SSO site, you would need to be able to get access to valid SAML assertion either way. AT=LI does support session ticket instead of password for SSO sites, but getting the ticket requires SSO authentication. For new development, I'd always recommend XML API, however.
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