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

Get the List of available Web Occurrences for a Programme. 

This is a listing of all of the Occurrences of a given Programme, which have available places. 

Web occurrence means an occurrence which is published on the web. 

A Programme ID is passed as a parameter: iProg_ID. 

Available places means that the number of students enroled is less than the maximum number allowed for the occurrence. 

Each Occurrence item is represented by a TOccu. The collection of Occurrence items is represented by a TOccu

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

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 with the programme ID specified that have available places")]
public TAuthOccuList GetWebOccurrencesForProgramme(string sToken, int iProg_ID);
Parameters 
Description 
string sToken 
String containing a token. 
int iProg_ID 
Integer, ID of Programme. 

TAuthOccuList : an authenticated list of Occurrences.

Copyright (c) VETtrak 2022. All rights reserved.