cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3809
Views
1
Helpful
9
Replies

Access Denied when using WebEx URL API

Yusof Yaghi
Cisco Employee
Cisco Employee

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>

9 Replies 9

nmorrow
Cisco Employee
Cisco Employee

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.

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>

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>

Ah. Ok, that makes sense.

The WebEx ID is one's username correct? When I try I get bad webex ID or password.

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.

Ya. Its failing. Could it potentially be failing because of SSO?

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.

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?

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.