Using Dynamic Quotes API to build your own Dynamic Quote

EducationLink allows you to build your own Dynamic Quotes API. If you're a developer, follow this guide to use our API.

The Dynamic Quotes API was built to be flexible and extensible to any Javascript function. You can create any function or call "any" library. Below we detail how to use our API to take full advantage of the Dynamic Quotes feature.

Interacting with EducationLink

There will be cases where you want to interact with EducationLink API. While we limit to only allowed methods, you can still do it. To allow for greater flexibility all it takes is one function, below there is an example:

window.dynamic_quote_actions.push({ action: 'choose-course', courseId });

Action "choose-course":

Using this action, you will be able to mark a course as selected. The usage of this action is below, the variable "courseId" should contain the "productId" value.

window.dynamic_quote_actions.push({ action: 'choose-course', courseId });

Optionally, you can pass a "message" to overwrite EducationLink notification when the course is chosen.

Make sure to only call this action when the quote type is "options".

Action "choose-quote":

Using this action, you will be able to mark an entire quote as selected. The usage of this action is below, the variable "courseId" should contain the "productId" value.

window.dynamic_quote_actions.push({ action: 'choose-quote', quoteId });

Optionally, you can pass a "message" to overwrite EducationLink notification when the quote is chosen.

Make sure to only call this action when the quote type is "study-plan".

Action "change-route":

Using this action will allow you to change routes. Internally EducationLink uses Vue.js. The object expected to change the route is the same as VueRouter.

To get to the Location details page:

window.dynamic_quote_actions.push({ action: 'change-route', route: { name: 'location-details', params: { locationId: product.locationDetails.locationId } } });

To go to the Provider details page:

window.dynamic_quote_actions.push({ action: 'change-route', route: { name: 'provider-details', params: { providerId: product.providerDetails.providerId } } });

Action "debug":

To facilitate development, you can activate the debug mode. When active you will see helpful console messages:

window.dynamic_quote_actions.push({ action: 'debug', status: true });