The POST /api/user/recentlyViewedendpoint is used to retrieve recently viewed courses by a user based on the user ID.
Method: POST
Base URL: {{baseUrl}}
Path: /api/user/recentlyViewed
Headers:
Body:
idst (text): The user ID for which details are to be retrieved.
auth (text): The authentication token
The response will be in JSON format with the following structure:
success (boolean): Indicates the success of the request.
courses (array): An array object representing courses, each having these propertiies:
idCourse (string): course ID
course_type (string): type of the course
idCategory (string): category ID
code (string): course code
name (string): course name
description (string): course description
box_description (string): description of the course box
difficult (string): difficulty level of the course
status (string): course status
level_show_user (string): user level visibility
course_edition (string): edition of the course
sub_start_date (string): subscription start date
sub_end_date (string): subscription end date
max_num_subscribe (string): maximum number of subscribers
create_date (string): creation date of the course
direct_play (string): direct play option
img_othermaterial (string): image of other materials
course_demo (string): course demo file
use_logo_in_courselist (string): use logo in course list
img_course (string): course image
lang_code (string): language code
course_vote (string): course voting score
hour_end (string): end hour of the course
hour_begin (string): begin hour of the course
date_begin (string): start date of the course
date_end (string): end date of the course
valid_time (string): validity time of the course
show_result (string): show result option
userStatusOp (string): user status operation
auto_unsubscribe (string): auto unsubscribe option
unsubscribe_date_limit (string): unsubscribe date limit
user_status (string): user status
level (string): user level
date_inscr (string): date of enrollment
date_first_access (string): first access date
date_complete (string): course completion date
waiting (boolean): waiting status
date_unsubscribe_date_limit (string): date of unsubscribe limit
show_progress (boolean): show progress option
enrolled (number): number of enrolled users
numof_waiting (string): number of waiting users
first_lo_type (boolean): first learning object type
nameCategory (string): category name
escaped_name (string): escaped course name
level_icon (string): icon representing the level
level_text (string): text representing the level
is_enrolled (boolean): enrollment status
canEnter (boolean): can enter course status
editions (boolean): course editions availability
course_full (boolean): course full status
in_cart (boolean): in cart status
userCanUnsubscribe (boolean): user can unsubscribe option
show_options (boolean): show options status
courseBoxEnabled (boolean): course box enabled status
stats (object)
total (number): total number of students
total_complete (string): total number of completed courses
total_failed (string): total number of failed courses
perc_completed (number): percentage of courses completed
perc_failed (number): percentage of courses failed