Constructor
# new ELearningService(cookie)
Creates an instance of ELearningService.
Parameters:
Name | Type | Description |
---|---|---|
cookie |
string
|
The cookie value. |
Classes
Methods
# async getELearning() → {Promise.<ELearningResponse>}
Retrieves the e-learning information (all modules).
Alias for getStaticInfos().
A promise that resolves to the ELearningResponse object.
Promise.<ELearningResponse>
# async getInfo() → {Promise.<AxiosResponse>}
Retrieves information from the e-learning API.
If an error occurs during the API request.
Error
A promise that resolves to the Axios response object.
Promise.<AxiosResponse>
# async getModuleVideos(moduleName)
Retrieves the videos for a given module.
Parameters:
Name | Type | Description |
---|---|---|
moduleName |
string
|
The name of the module. |
# async getStaticInfos() → {Promise.<ELearningResponse>}
Retrieves the static information from the e-learning API.
If the information has not been fetched yet, it calls the getInfo() method.
A promise that resolves to the ELearningResponse object.
Promise.<ELearningResponse>