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 Getting Started

starting an impromptu meeting

Combination View Flat View Tree View
Threads [ Previous | Next ]
Hi,
 
I am trying to start an impromptu meeting using URL api.
If I am understanding this correctly, whenever user wants
to start the impromput meeting, he needs to login first
and then he can start meeting.
 
I could find an example of impromptu meeting in the URL api reference guide,
is there a similar example for login case?
 
Also do I need to extract any parameters from the login success return msg?
 
Thanks in advance,
 

Hi Pushkar,
 
The login command is on page 2-23 of the documentation.  In its most basic form you will have

http://{sitename}.webex.com/{sitename}/p.php?AT=LI&WID={username}&PW={password}

To get a little bit more involved if you want to perform another action on login success, you will need to add a MU parameter to the query string.

http://{sitename}.webex.com/{sitename}/p.php?AT=LI&WID={username}&PW={password}&MU={successfulLoginURL}
(MU and BU parameters need to be url encoded)


So if you would like to login and automatically start the meeting it would look like this
http://example.webex.com/example/p.php?AT=LI&WID=userA&PW=passwordB&MU=http%3A%2F%2Fexample.webex.com%2Fexample%2Fm.php%3FAT%3DIM

Now this will only work if the meeting site does not require passwords or if other required information is needed to start a meeting.  You can get a list of all the parameters from the URL API documentation.

Hi Kingsley,
 
Thanks for your reply. I was able to start an impromptu meeting.
I had couple more questions:
 
1) Is there a way in the URL apis to check if a user is logged-in or not?
 
2) If the user is not successfully authenticated with web-ex, what is the server response and is there an
example of this case somewhere in the documentation {sample code parsing specific server response}?
 
3) Is there a way I can add invitee email addresses in the impromput meeting? Or should I be using schedule
meeting with current date/time for this purpose.
 
Thanks once again,
-Pushkar

1) Is there a way in the URL apis to check if a user is logged-in or not?
 
2) If the user is not successfully authenticated with web-ex, what is the server response and is there an
example of this case somewhere in the documentation {sample code parsing specific server response}?
 
3) Is there a way I can add invitee email addresses in the impromput meeting? Or should I be using schedule
meeting with current date/time for this purpose.



 
1) No; But if you want to make sure your getting a fresh session you can call p.php?AT=LO to first log out the user and then log back in.  This usually isn't necessary but is still a good practice.
 
2)The most common will be BadWebExIDOrPassword.  You can find more information on the p.php?AT=LI errors from pages 2-24 - 2-26.  Log these errors!  WebEx will not be able to help you unless you can provide BOTH the request and response.
 
3)For the URL API you will need to call m.php?AT=AA to add an attendee to the meeting.  Since the command AT=IM does not immediately return a meeting key you would have to schedule the meeting, get the response, add attendees, then start the meeting.  If you are going to do this then I would suggest just using the XML API to schedule the meeting and add attendees in a single call to the server.
 
Thank you
-Kingsley

Hi Kingsley,
 
Currently I get an html page back that has a javascript that redirects me to a site on failing to login.
example, when I fail to login I get back html page with following javascript:
 
<pre><code><body>
</code><code><script language="JavaScript">
</code><code> location.href="https://ciscosupport.webex.com/mw0306l/mywebex/default.do?siteurl=ciscosupport&AT=LI</code><code>&WID=pghayal&ST=FAIL&RS=BadWebExIDOrPassword";
</code><code></script>
</code><code></body>
</code><code></html>
</code></pre>
 
is there a way by which the server can send me may be a json structure with only required information which is
<pre><code>siteurl=ciscosupport&AT=LI</code><code>&WID=pghayal&ST=FAIL&RS=BadWebExIDOrPassword</code></pre>
 
 
Also,
      I am trying to implement a use case where a user can start (not necessarily schedule for future) a meeting with many people (their email addresses are known). Would you recommend schedule meeting command for such scenerio or IM is still recommended but with xml api?
 
Thanks once again,

Hi Pushkar,
 
The URL API is a browser based API. It works and functions correctly within a browser, so technologies like php, perl, html/javascript will work best. If you plan on using a server to server you need to use the XML API.  We cannot change the structure of the error messages.
 
For your scenario above,  I suggest creating a meeting with the XML API and add attendees at that time.  The end user can click on a button to start the meeting.  In the background you will call CreateMeeting with the list of attendees. A Meeting key will be returned that can be used to construct the URL for joining the meeting.  You can use javascript to submit the link and have the host join the meeting. 
 
The attendees can either be sent and email from the CreateMeeting XML request,  or you can generate your own custom emails and send them to the attendee.
 
Thank you
-Kingsley Lewis

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.