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

2039
Views
0
Helpful
17
Replies
Beginner

XML API to get the list of all the people who registered for a specific event

Hi

Can you please provide me the sample XML which I can use to get the list of all the people who registered for a specific event.

I am pretty new to this, so need help in this.

Thanks

Abhay

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Contributor

Re: XML API to get the list of all the people who registered for a specific event

I believe the results of GetEnrollmentInfo has the information you seek.

View solution in original post

17 REPLIES 17
Highlighted
Contributor

Re: XML API to get the list of all the people who registered for a specific event

Abhay,

You can get a list of attendees of an event by using the GetEvent XML call, here is a sample:

<?xml version="1.0" encoding="ISO-8859-1"?>

<serv:message xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

<header>

<securityContext>

<webExID>hostid</webExID>

<password>hostpassword</password>

<siteName>yoursite</siteName>

</securityContext>

</header>

<body>

<bodyContent xsi:type="java:com.webex.service.binding.event.GetEvent">

<sessionKey>46401604</sessionKey>

</bodyContent>

</body>

</serv:message>

this will return alot of data, and contained is an element called: <event:attendees> that lists all the attendees for that event.

You can get the sessionKey from the response of a CreateEvent, or you can call LstsummaryEvent to get a list of events along with there sessionKey.

<?xml version="1.0" encoding="ISO-8859-1"?>

<serv:message xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

<header>

<securityContext>

<webExID>hostid</webExID>

<password>hostpassword</password>

<siteName>yoursite</siteName>

</securityContext>

</header>

<body>

<bodyContent

xsi:type="java:com.webex.service.binding.event.LstsummaryEvent">

<listControl>

<startFrom>1</startFrom>

<maximumNum>10</maximumNum>

<listMethod>OR</listMethod>

</listControl>

<order>

<orderBy>HOSTWEBEXID</orderBy>

<orderAD>ASC</orderAD>

<orderBy>EVENTNAME</orderBy>

<orderAD>ASC</orderAD>

<orderBy>STARTTIME</orderBy>

<orderAD>ASC</orderAD>

</order>

<dateScope>

<startDateStart>03/10/2004 00:00:00</startDateStart>

<timeZoneID>45</timeZoneID>

</dateScope>

</bodyContent>

</body>

</serv:message>

Highlighted
Beginner

Re: XML API to get the list of all the people who registered for a specific event

Hi Ryan

Thanks for the response. When I make the call to the GetEvent API, I am not getting the <event:attendees> tag in the response.

Also, I want all the registered people details who signed up for an event. Like the Registration Report we have.

Hoping for an early response.

Thanks

Abhay

Highlighted
Contributor

Re: XML API to get the list of all the people who registered for a specific event

After the event has ended it will appear in history reports in approx 24-72h, the WebEx  API call you are looking for is: LsteventattendeeHistory

Highlighted
Beginner

Re: XML API to get the list of all the people who registered for a specific event

Hi Ryan

Doesn’t the “LsteventattendeeHistory<https://developer.cisco.com/media/webex-xml-api/91LsteventattendeeHistory.html>” API provided the list of attendees who actually attended the event and not the list of people who registered for the event.

As there can be many people who registered for the event but only some of them attended. I am trying to find out all the people who registered for the event.

Thanks

Abhay

Highlighted
Contributor

Re: XML API to get the list of all the people who registered for a specific event

I believe the results of GetEnrollmentInfo has the information you seek.

View solution in original post

Highlighted
Beginner

Re: XML API to get the list of all the people who registered for a specific event

Hi Ryan

Thanks for this. GetEnrollmentInfo was exactly I was looking for.

But, it is returning only 17 records even though the count is way higher and in the response I do see

<att:matchingRecords><serv:total>1697</serv:total><serv:returned>1697</serv:returned><serv:startFrom>1</serv:startFrom>

Don’t know why only 17 registered attendees are showing up.

Can you please help me with this.

Thanks

Abhay

Highlighted
Contributor

Re: XML API to get the list of all the people who registered for a specific event

there is a limit to the number of entries returned, if you have more than the limit then programmatically you'll have to make multiple requests with a startFrom beginning from where it left off until you have reached the end.. basically have to page your way through it.

Highlighted
Beginner

Re: XML API to get the list of all the people who registered for a specific event

But when I add the listcontrol to the XML, it starts giving error.

Thanks

Abhay

Highlighted
Beginner

Re: XML API to get the list of all the people who registered for a specific event

Any thoughts on this?

Highlighted
Contributor

Re: XML API to get the list of all the people who registered for a specific event

whats the error your receiving?

Highlighted
Beginner

Re: XML API to get the list of all the people who registered for a specific event

Hi Ryan

Below is the request that I am making

string strXML = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n";

            strXML += "<serv:message xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:serv=\"http://www.webex.com/schemas/2002/06/service\" xsi:schemaLocation=\"http://www.webex.com/schemas/2002/06/service http://www.webex.com/schemas/2002/06/service/service.xsd\">\r\n";

            strXML += "<header>\r\n";

            strXML += "<securityContext>\r\n";

            strXML += "<webExID></webExID>\r\n";

            strXML += "<password></password>\r\n";

            strXML += "<siteName></siteName>\r\n";

            strXML += "<partnerID></partnerID>\r\n";

            strXML += "</securityContext>\r\n";

            strXML += "</header>\r\n";

            strXML += "<body>\r\n";

            strXML += "<bodyContent xsi:type=\"java:com.webex.service.binding.attendee.GetEnrollmentInfo\">\r\n";

            strXML += "<listControl>\r\n";

            strXML += "<startFrom>1</startFrom>\r\n";

            strXML += "<maximumNum>10</maximumNum>\r\n";

            strXML += "<listMethod>OR</listMethod>\r\n";

            strXML += "</listControl>\r\n";

            strXML += "<sessionKey></sessionKey>\r\n";

            strXML += "</bodyContent>\r\n";

            strXML += "</body>\r\n";

            strXML += "</serv:message>\r\n";

And the response which I am getting for the above POST request

<?xml version="1.0" encoding="UTF-8"?>

<serv:message xmlns:serv="http://www.webex.com/schemas/2002/06/service" xmlns:com="http://www.webex.com/schemas/2002/06/common">

<serv:header>

<serv:response>

<serv:result>FAILURE</serv:result>

<serv:reason>validation: unable to find FieldDescriptor for 'listControl' in ClassDescriptor of getEnrollmentInfo</serv:reason>

<serv:gsbStatus>PRIMARY</serv:gsbStatus>

<serv:exceptionID>999999</serv:exceptionID>

</serv:response></serv:header><serv:body>

<serv:bodyContent/>

</serv:body></serv:message>

Thanks

Abhay

Highlighted
Beginner

Re: XML API to get the list of all the people who registered for a specific event

Hi Ryan

Any thoughts?

Thanks

Abhay

Highlighted
Cisco Employee

Re: XML API to get the list of all the people who registered for a specific event

Hi Abhay,

Would you mind providing the sessionKey and siteName you are testing with? Please feel free to email or private message it to me for security purposes.

Kasey

Highlighted
Beginner

Re: XML API to get the list of all the people who registered for a specific event

Hi Kasey

Is it necessary? I am unaware of the security risks for this.

Thanks

Abhay

CreatePlease to create content
This widget could not be displayed.