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

555
Views
0
Helpful
1
Replies
Highlighted
Beginner

URL API basics - what am I doing wrong? Any sourcecode examples?

Hello,

I am already successfully using WebEx XML API, but I also wanted to try the URL API.

One interesting feature of the URL API is the ability to end an ongoing meeting (which is not possible via the XML API).

So, I reserved a shared sandbox through the Try WebEx Conferencing API's webpage.

I created user with ID = 1410997 and password 'mypassword'.

Then, I manually started a meeting with meeting key '622 900 191'.

Now, I want to end this meeting through the URL API.

So, I am first sending the following HTTP GET request (programatically, not typing it manually in the browser):

https://apidemoeu.webex.com/apidemoeu/p.php?AT=LO&WID=1410997&PW=mypassword

...which returns an HTML page containing some JavaScript and a form with a hidden field 'destUrl':

<input type="hidden" id="destUrl" value="https://apidemoeu.webex.com/mw3200/mywebex/default.do?siteurl=apidemoeu&AT=LO&ST=SUCCESS">

So far, so good. Then, I am sending second HTTP GET request to kill the meeting:

https://apidemoeu.webex.com/apidemoeu/w.php?AT=KM&MK=622900191&WID=1410997&PW=mypassword

And this one unfortunately fails, returning the following text:

AT=KM&ST=FAIL&RS=AccessDenied

1. So, what am I doing wrong? Why is the AT=KM command failing?

Is it because of improper cookie management on my side?

Do I need to execute JS scripts from the HTML returned by the AT=LO command?

Do I need to visit the destUrl to finished the logging-in process?

2. Also, do you have any working sourcecode examples (in Java or PHP) of using WebEx URL API?

Thanks!

Everyone's tags (3)
1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Contributor

Re: URL API basics - what am I doing wrong? Any sourcecode examples?

Sending passwords and meeting keys via HTTP GET is no longer supported for security reasons, please use HTTPS POST instead.. for more information on these changes see: Recent URL API Changes - Get2Post

The WebEx XML API is suggested for use with server side scripts such as PHP/Java, the WebEx URL API is more designed for browser consumption and is far more limited in functionality.

View solution in original post

1 REPLY 1
Highlighted
Contributor

Re: URL API basics - what am I doing wrong? Any sourcecode examples?

Sending passwords and meeting keys via HTTP GET is no longer supported for security reasons, please use HTTPS POST instead.. for more information on these changes see: Recent URL API Changes - Get2Post

The WebEx XML API is suggested for use with server side scripts such as PHP/Java, the WebEx URL API is more designed for browser consumption and is far more limited in functionality.

View solution in original post

This widget could not be displayed.