Skip to main content
EMS Software, LLC

GetEventTypes

Description

Returns a list of event types

Request Parameters

Name

Description

Type

UserName

MC User Name

String

Password

MC User Password

String

Response Elements

Name

Description

Type

Name

Location Name

String

EventTypeID

Event Type ID

Integer

Color

Event Type Color

String

Sample Code

private void GetEventTypes()

 {

        MCAPI.MCAPIService svc = new MCAPI.MCAPIService();         svc.Url = "http://yourserver/MCAPI/MCAPIService.asmx?WSDL";

 

        StringReader sr = new StringReader(svc.GetEventTypes("username", "pwd"));

        DataSet ds = new DataSet();

        System.Xml.XmlDocument doc = new System.Xml.XmlDocument();         doc.LoadXml(sr.ReadToEnd());

        ds.ReadXml(new System.Xml.XmlNodeReader(doc));

 

 }

Example Response

<EventTypes>

  <Data>

    <EventTypeID>169</EventTypeID>

    <Name>Academic</Name>

    <Color>#CCCC66</Color>

  </Data>

  <Data>

    <EventTypeID>171</EventTypeID>

    <Name>Athletic</Name>

    <Color>#FF3300</Color>

  </Data>

</EventTypes>