Please note: These WebEx forums have replaced the earlier site forums. All the previous threads and posts have been replicated here, and if you subscribed to the previous forums, please re-subscribe. Thank you.
« Back to Scheduling Meetings

RE: Need help with the URL API (login and schedule)

Combination View Flat View Tree View
Threads [ Previous | Next ]
Hi gurus,
 
I'm trying to integrate WebEx Meetings into my PHP
website via the URL API. I managed to POST the login command thru cURL
and got the SUCCESS flag; however, when I tried to schedule a meeting
posting the SM command, I'm getting an "AccessDenied" error.
 
I've read the docs and they say you can get this error if you're already
logged in in another browser instance or if you remain inactive for 20
minutes, but I can assure you neither is the case. I tried different
approaches, like invoking one after the other or "chaining" the SM
command to the user login LI command (using the SM URL as the MU
parameter for LI) but that didn't work either. Am I doing smth wrong /
missing smth? Could you please shed some light upon this??
 
Here you can see the URLs I used:
 
1) "classic" approach:
 
first
 
https://apidemoeu.webex.com/apidemoeu/p.php?AT=LI&WID=MY_USER&PW=MY_PASS&MU=GoBack&BU=www.google.com.ar
 
then
 
https://apidemoeu.webex.com/apidemoeu/m.php?AT=SM&MN=TestMeeting&YE=2012&MO=10&DA=26&HO=15&MI=30&BU=www.google.com.ar&LF=1
 
2) "chained" commands:
 
https://apidemoeu.webex.com/apidemoeu/p.php?AT=LI&WID=MY_USER&PW=MY_PASS&MU=https://apidemoeu.webex.com/apidemoeu/m.php?AT=SM&MN=TestMeeting&YE=2012&MO=10&DA=26&HO=15&MI=30&BU=www.google.com.ar&LF=1
 
Thanks in advance

URL API is intended for access via web browser and isn't really designed for server to server type setup like this. Login is tracked via session cookie, created via the LI command or manual authentication, which must be available when attempting to authorize the schedule request. For PHP page, it is highly recommended that you use use XML API instead. URL API is best suited to simple HTML form style integration where the web browser is tracking login instead of cURL. I listed an example below, note form field name matches URL API variable name. For known values, hidden fields can be used or simply display a clickable link or button that directly launches the formatted URL instead of using a form.


Example Login Form:
<form method="POST" action="https://apidemoeu.webex.com/apidemoeu/p.php">
<input type="hidden" name="AT" value="LI">
<input type="textbox" name="WID">
<input type="password" name="PW">
<input type="hidden" name="MU" value="http://landing.page.for.successful.response">
<input type="hidden" name="BU" value="http://landing.page.for.failed.response">
<input type="submit">
</form>

Create a Cisco account today and gain access across all Cisco Collaboration Developer sites.

 

Follow the WebEx Developer program on Twitter for the latest industry and WebEx Meetings related information.