cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements

If your Cloud Collaboration question is not answered quickly, please email devsupport@webex.com for additional help

2103
Views
1
Helpful
9
Replies
Cisco Employee

Access Denied when using WebEx URL API

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>

Everyone's tags (2)
9 REPLIES 9
Highlighted
Cisco Employee

Re: Access Denied when using WebEx URL API

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.

Highlighted
Cisco Employee

Re: Access Denied when using WebEx URL API

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>

Highlighted
Cisco Employee

Re: Access Denied when using WebEx URL API

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>

Highlighted
Cisco Employee

Re: Access Denied when using WebEx URL API

Ah. Ok, that makes sense.

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

Highlighted
Cisco Employee

Re: Access Denied when using WebEx URL API

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.

Highlighted
Cisco Employee

Re: Access Denied when using WebEx URL API

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

Highlighted
Cisco Employee

Re: Access Denied when using WebEx URL API

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.

Highlighted
Cisco Employee

Re: Access Denied when using WebEx URL API

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?

Highlighted
Cisco Employee

Re: Access Denied when using WebEx URL API

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.

CreatePlease to create content
This widget could not be displayed.