Getting started
Authentication
Resources
- Access Passes
- Access
- Apps
- Attachments
- Companies
- Courses
- Experiences
- Forums
- Messages
- Notifications
- Payments
- Users
Courses
Get User Lesson Interactions
A course from a courses app experience
Copy
Ask AI
import { whopSdk } from "@/lib/whop-sdk";
const result = await whopSdk.courses.getUserLessonInteractions({
// The ID of the experience that has the course.
experienceId: "exp_XXXXXXXX" /* Required! */,
});
Example output:
Copy
Ask AI
const response = {
// The chapters in this course
chapters: [
{
// The lessons in this chapter
lessons: [
{
// The user's lesson interactions for this lesson
lessonInteraction: {
// The ID of the lesson interaction
id: "xxxxxxxxxxx",
// Whether the lesson has been completed by the user
completed: true,
},
},
],
},
],
};
Was this page helpful?
Assistant
Responses are generated using AI and may contain mistakes.