User Actions

User actions for Courses

post
Enroll into the Course

https://yoursite.com/wp-json/wplms/v2/course/subscribe
Request
Response
Request
Form Data Parameters
token
required
string
The JWT token to identify the user
Course_id
required
number
Course Id to enroll the user
Response
200: OK
Successfully subscribed to the course. Expiry is the PHP UTC timestamp when the user's access to the course will expire.
{
"status": 1,
"message": "Successfully subscribed to course!",
"status": "1",
"expiry": 123467
}

‚Äč