cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
6803
Views
0
Helpful
18
Replies

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

abgupta7857
Level 1
Level 1

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

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

View solution in original post

18 Replies 18

ryanhunt
Level 5
Level 5

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>

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

ryanhunt
Level 5
Level 5

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

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

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

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

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.

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

Thanks

Abhay

Any thoughts on this?

whats the error your receiving?

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

Hi Ryan

Any thoughts?

Thanks

Abhay

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

Hi Kasey

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

Thanks

Abhay