Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This document contains a list of APIs you can revoke with the getApiData() and postApiData() functions.

Other Documents

VarsityGames

Returns a list of varsity games between the start and end date. 

...

Code Block
languagejs
linenumberstrue
portalHelpers.getApiData('Parking/GetParkingLotInfo').then(function (result) {
    console.log("result", result);
});

MyTutors

Gets a list of tutors for the enrolled classes of the user.

Example:

Code Block
languagejs
linenumberstrue
portalHelpers.getApiData('resources/myTutors').then(function (result) {
    console.log("result", result);
});

MyTutors

Gets a list of tutors for the enrolled classes of the user.

Example:

Code Block
languagejs
linenumberstrue
portalHelpers.getApiData('resources/myTutors').then(function (result) {
    console.log("result", result);
});

...

Gets a list of all available tutors from open data.

Example:

Code Block
languagejs
linenumberstrue
portalHelpers.getApiData('resources/AllTutors ').then(function (result) {
    console.log("result", result);
});

...

Gets a list of subject librarians.

Example:

Code Block
languagejs
linenumberstrue
portalHelpers.getApiData('resources/subjectLibrarians').then(function (result) {
    console.log("result", result);
});

...

Gets all course materials for all enrolled courses of the user.

Example:

Code Block
languagejs
linenumberstrue
portalHelpers.getApiData('resources/CourseMaterials').then(function (result) {
    console.log("result", result);
});

...

Gets the detailed information of all terms.

Example:

Code Block
languagejs
linenumberstrue
portalHelpers.getApiData('student/TermDetails').then(function (result) {
    console.log("result", result);
});

...

Gets the ID, username, and full name of the current user.

Example:

Code Block
languagejs
linenumberstrue
portalHelpers.getApiData('student/Bio2').then(function (result) {
    console.log("result", result);
});

...

Gets the terms information of the current user.

Example:

Code Block
languagejs
linenumberstrue
portalHelpers.getApiData('student/Terms2').then(function (result) {
    console.log("result", result);
});

...

Gets the current enrolled courses information of the current user.

Example:

Code Block
languagejs
linenumberstrue
portalHelpers.getApiData('student/Courses2').then(function (result) {
    console.log("result", result);
});

...

Returns the current term code.

Example:

Code Block
languagejs
linenumberstrue
portalHelpers.getApiData('student/CurrentTermCode').then(function (result) {
    console.log("result", result);
});

...

Returns instructors of the current enrolled courses of the user.

Example:

Code Block
languagejs
linenumberstrue
portalHelpers.getApiData('student/Instructors').then(function (result) {
    console.log("result", result);
});

...

Returns class meets of the current enrolled courses of the user.

Example:

Code Block
languagejs
linenumberstrue
portalHelpers.getApiData('student/Meets2').then(function (result) {
    console.log("result", result);
});

...

  • start (string): specify the start date.

  • end (string): specify the end date.

Example:

Code Block
languagejs
linenumberstrue
portalHelpers.getApiData('student/NonScheduledClasses?start=2017-09-01&end=2017-10-30').then(function (result) {
    console.log("result", result);
});

...

  • start (string): specify the start date.

  • end (string): specify the end date.

Example:

Code Block
languagejs
linenumberstrue
portalHelpers.getApiData('student/OnlineCourses?start=2017-09-01&end=2017-10-30').then(function (result) {
    console.log("result", result);
});

...

Gets college affiliations of the current student.

Example:

Code Block
languagejs
linenumberstrue
portalHelpers.getApiData('student/CollegeAffiliations').then(function (result) {
    console.log("result", result);
});

...

Gets resident data of the current student.

Example:

Code Block
languagejs
linenumberstrue
portalHelpers.getApiData('student/RezInfo').then(function (result) {
    console.log("result", result);
});

...

Gets all study spaces that are available today.

Example:

Code Block
languagejs
linenumberstrue
portalHelpers.getApiData('StudySpace/GetStudySpacesToday').then(function (result) {
    console.log("result", result);
});

...

Gets Fed Bus schedule from the Fed Bus website.

Example:

Code Block
languagejs
linenumberstrue
portalHelpers.getApiData('Transportation/GetFedBusSchedule').then(function (result) {
    console.log("result", result);
});

...

Gets Go Bus stops information from the Go Transit website.

Example:

Code Block
languagejs
linenumberstrue
portalHelpers.getApiData('Transportation/GetGoTransitStopInfo').then(function (result) {
    console.log("result", result);
});

...

Gets user information for the current user.

Example:

Code Block
languagejs
linenumberstrue
portalHelpers.getApiData('User/GetUserInfo').then(function (result) {
    console.log("result", result);
});

...

Gets a list of all WCMS websites.

Example:

Code Block
languagejs
linenumberstrue
portalHelpers.getApiData('WCMS/GetAllWcmsSites').then(function (result) {
    console.log("result", result);
});

...

  • campus (string): specify the campus for which you want to get weather information.

Example:

Code Block
languagejs
linenumberstrue
portalHelpers.getApiData('Weather/ForecastIo?campus=waterloo').then(function (result) {
    console.log("result", result);
});

...

  • campus (string): specify the campus for which you want to get weather information.

Example:

Code Block
languagejs
linenumberstrue
portalHelpers.getApiData('Weather/Current?campus=waterloo').then(function (result) {
    console.log("result", result);
});

...

  • campus (string): specify the campus for which you want to get weather information.

Example:

Code Block
languagejs
linenumberstrue
portalHelpers.getApiData('Weather/Forecast?campus=waterloo').then(function (result) {
    console.log("result", result);
});

...

Fetches weather alerts from RSS.

Example:

Code Block
languagejs
linenumberstrue
portalHelpers.getApiData('Weather/Alerts').then(function (result) {
    console.log("result", result);
});