我如何使用WebEx的URL / XML API来注册事件的用户? [英] How can I use the WebEx URL/XML API to register a user for an event?

查看:8643
本文介绍了我如何使用WebEx的URL / XML API来注册事件的用户?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为一个客户端,用户可以注册事件在网站上。现在,客户端要整合的的WebEx 并自动注册用户WebEx活动,他们签署了在我们网站上的事件,并为此付出了代价后所有。

I'm working on a website for a client where users can sign up for events. Now the client wants to integrate WebEx and automatically register users to WebEx events after they signed up for the event on our site and paid for it an all.

我检查了他们的API,我无法找到一个方法来做到这一点:

I checked out their API and I could not find a way to do this:

通过在 XML API 我可以提供事件列表,甚至创建一个新用户,但我不能报名参加活动的用户。

With the XML API I can get a list of available events and even create a new user, but I cannot register a user for an event.

通过在 URL API 我可以登录一个用户(我使用XML API之前创建的),但我不能注册为事件的用户,目前根本是没有的功能。这里有一个登记事件的功能,但一个是会议,并没有考虑用户的ID作为参数,而是它的第一/姓氏和电子邮件地址。

With the URL API I can login a user (that I created before using the XML API) but I cannot register a user for an event, there simply is no function for that. There's an "Enroll Event" function, but that one is for meetings and doesn't take a user's ID as a parameter, but rather its first/last name and email address.

有谁尝试过这个?我在这里损失,有不知道还有什么我可以尝试。

Anyone ever tried this before? I'm at a loss here and got no idea what else I could try.

推荐答案

由于这个被要求在三月,你可能不会仍然在寻找一个答案,但是这可能帮助别人下来就行了。

Since this was asked in March, you probably aren't still looking for an answer, but this might help others down the line.

如果您的网站上有一个表格,用户填写在WebEx事件报名参加,您可以POST形成使用URL API和本次活动的会议密钥数据的WebEx。要找到关键会议,登录到的WebEx作为主机,去举办活动 - >网站事件和点击您的活动。事件编号为您的会议重点,减去任何空白。

If you have a form on your website that a user fills out to enroll in a WebEx Event, you can "POST" that form data to WebEx using the URL API and this event's meeting key. To find the meeting key, log in to WebEx as a host and go to Host an Event -> Site Events and click on your event. The Event Number is your meeting key, minus any white space.

当用户提交表单,您将需要构建一个WebEx的可读的URL。这通常看起来如下:<一href=\"https://yourcompany.webex.com/yourcompany/m.php?AT=EN\">https://yourcompany.webex.com/yourcompany/m.php?AT=EN,并应尽可能窗体的动作。

When a user submits the form, you will need to construct a WebEx-readable URL. This generally looks like the following: https://yourcompany.webex.com/yourcompany/m.php?AT=EN, and should be placed as the form's action.

您使用m.php使用会议API命令并追加AT参数来启动的WebEx命令。在EN意味着你要与会者添加到事件。然后,您可以使用命令定义的东西像名字(FN),姓(LN),电子邮件(AE),公司(CO)等属性的列表可以在找到命名您网站上的表单输入字段的WebEx URL API文档2-152页的。你的属性应该匹配你要求用户输入其选项的WebEx形式。您还需要包括您的会议密钥的隐藏字段,例如:

You use m.php to use the meetings API commands and append the AT parameter to initiate WebEx commands. The EN means you want to add an attendee to an event. You then name the form input fields on your site using the command definitions for things like first name (FN), last name (LN), email (AE), company (CO), etc. A list of attributes can be found in the WebEx URL API documentation on page 2-152. Your attributes should match what you require the user to input on the WebEx form in its options. You also need to include a hidden field with your meeting key, like so:

<input type="hidden" name="MK" value="123456789" />

这是这样的,当你发布的形式,MK价值被列为一种形式参数。您的请求将会失败而无需你要的人加入到事件中的特定会议键值。

This is so, when you post the form, the MK value gets included as a form parameter. Your request will fail without the specific meeting key value for the event you're trying to add people to.

如果您想直接的人感谢您网页,或你有什么,他们注册之后,你需要包括表单提交后某处用户重定向后退URL另一个隐藏字段:

If you want to direct people to a thank you page, or what have you, after they sign up, you'll need to include another hidden field with a back url that redirects a user somewhere after the form is submitted:

<input type="hidden" name="BU" value="http://www.yourcompany.com/events/thanks.html" />

您也应该,当然,加入某种形式的处理,以确保用户输入有效的电子邮件等,你可能还要包括一些WebEx的验证,如,当WebEx的用户重定向到后面的网址,它包括参数说明无论失败或成功,并解释了原因。这是附加像这样:<一href=\"http://www.yourcompany.com/events/thanks.html?AT=EN&ST=SUCCESS&EI=123456\">http://www.yourcompany.com/events/thanks.html?AT=EN&ST=SUCCESS&EI=123456,或类似的东西,其中ST是命令的状态和EI是用户的事件注册ID。然后,您可以查看该用户注册成功后,如果会议的关键是无效的,或者如果用户在这个电子邮件地址已经被注册,因此没有重新注册。

You should also, of course, add some form handling to make sure the user entered a valid email, etc. You might also want to include some WebEx validation, as, when WebEx redirects the user to the back URL, it includes a parameter stating whether it failed or succeeded and explains why. This is appended like so: http://www.yourcompany.com/events/thanks.html?AT=EN&ST=SUCCESS&EI=123456, or something similar, where ST is the status of the command and EI is the user's event registration ID. You can then check to see that the user registered successfully, or if the meeting key was invalid or if the user is already registered at this email address and so wasn't re-registered.

这个的说明是,WebEx的URL API目前不支持的<一个事件href=\"http://developer.cisco.com/web/webex-developer/forum/-/message_boards/view_message/6344074?_19_redirect=http%3a%2f%2fdeveloper.cisco.com%2fweb%2fwebex-developer%2fforum%2f-%2fmessage_boards%2fsearch%3f_19_searchCategoryId%3d0%26_19_keywords%3dWebEx%2bURL%2bAPI%2bprogram%26_19_breadcrumbsCategoryId%3d0%26_19_redirect%3dhttp%253a%252f%252fdeveloper.cisco.com%252fweb%252fwebex-developer%252fforum%253fp_p_id%253d19%2526p_p_lifecycle%253d0%2526p_p_state%253dnormal%2526p_p_mode%253dview%2526p_p_col_id%253dcolumn-1%2526p_p_col_pos%253d1%2526p_p_col_count%253d2\">created作为一个程序,其中一个方案是在WebEx的主题,可以应用到多个事件,是建立一个WebEx的事件时,你可以申请一个可选字段的一部分。使用XML API可以解决这个问题,虽然。

A note about this is that the WebEx URL API currently doesn't support events that are created as part of a program, where a program is a WebEx theme that can be applied to multiple events and is an optional field you can apply when setting up a WebEx event. Using the XML API can work around this, though.

希望这会帮助别人,也许大卫也一样,如果他仍然在寻找答案。

Hope this helps others and maybe David, too, if he's still searching for an answer.

这篇关于我如何使用WebEx的URL / XML API来注册事件的用户?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆