Skip to main content
EMS Software, LLC

GetCalendars

Description

Returns a list of calendars

Request Parameters

Name

Description

Type

UserName

MC User Name

String

Password

MC User Password

String

Response Elements

Name

Description

Type

Name

Calendar Name

String

CalendarID

Calendar ID

Integer

Sample Code

private void GetCalendars()

 {

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

 

        StringReader sr = new StringReader(svc.GetCalendars("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

<Calendars>

  <Data>

    <CalendarID>134</CalendarID>

    <Name>Alumni</Name>

  </Data>

    <CalendarID>3</CalendarID>

    <Name>Athletics</Name>

  </Data>  </Calendars>