ASP.NET VETtrak API web services
ContentsIndexHome
PreviousUpNext
VT_API.GetWebOccurrencesOverlappingDateRange Method

Get all Web Occurrences on offer during a date range. 

Returns an Authenticated Occurrence List containing all of the Web Occurrences, which overlap the given date range. 

Each Occurrence is represented by a TOccu. The collection of Occurrences is represented by a List of TOccu

A token is passed for authentication. If the authentication fails, or other errors occur, no occurrences are returned. The result of the authentication is represented by a TAuthenticate object. 

A date range is passed as two parameters, xsdStart and xsdEnd, which define the end points of the date range. An occurrence will be returned in the Occurrence List, if any date for which the occurrence is offered (from it startdate to its enddate) co-incides with any date in the date range (including end points). 

This function is similar to GetWebOccurrencesForDates. GetWebOccurrencesForDates returns a subset of occurrences returned by this function. That subset is limited to those occurrences starting within the date range and having available places in the occurrence. 

Requires a valid registration key entry for the Short Courses feature. 

This function has security level "Protected", and can only be accessed by users that have explicitly been granted permission to the API.

C#
[WebMethod(Description = "Gets a list of web-enabled occurrences within the specified date range")]
public TAuthOccuList GetWebOccurrencesOverlappingDateRange(string sToken, DateTime xsdStart, DateTime xsdEnd);
Parameters 
Description 
string sToken 
String containing a token. 
DateTime xsdStart 
Date, start of date range in which to find Occurrences. 
DateTime xsdEnd 
Date, end of date range in which to find Occurrences. 

TAuthOccuList : an authenticated list of Occurrences.

Copyright (c) VETtrak 2022. All rights reserved.