Class: WhopSDK::Resources::CourseLessonInteractions
- Inherits:
-
Object
- Object
- WhopSDK::Resources::CourseLessonInteractions
- Defined in:
- lib/whop_sdk/resources/course_lesson_interactions.rb
Instance Method Summary collapse
-
#initialize(client:) ⇒ CourseLessonInteractions
constructor
private
A new instance of CourseLessonInteractions.
-
#list(after: nil, before: nil, completed: nil, course_id: nil, first: nil, last: nil, lesson_id: nil, user_id: nil, request_options: {}) ⇒ WhopSDK::Internal::CursorPage<WhopSDK::Models::CourseLessonInteractionListItem>
Lists course lesson interactions.
-
#retrieve(id, request_options: {}) ⇒ WhopSDK::Models::CourseLessonInteraction
Retrieves a course lesson interaction by ID.
Constructor Details
#initialize(client:) ⇒ CourseLessonInteractions
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of CourseLessonInteractions.
76 77 78 |
# File 'lib/whop_sdk/resources/course_lesson_interactions.rb', line 76 def initialize(client:) @client = client end |
Instance Method Details
#list(after: nil, before: nil, completed: nil, course_id: nil, first: nil, last: nil, lesson_id: nil, user_id: nil, request_options: {}) ⇒ WhopSDK::Internal::CursorPage<WhopSDK::Models::CourseLessonInteractionListItem>
Lists course lesson interactions
Required permissions:
-
‘courses:read`
-
‘course_analytics:read`
61 62 63 64 65 66 67 68 69 70 71 |
# File 'lib/whop_sdk/resources/course_lesson_interactions.rb', line 61 def list(params = {}) parsed, = WhopSDK::CourseLessonInteractionListParams.dump_request(params) @client.request( method: :get, path: "course_lesson_interactions", query: parsed, page: WhopSDK::Internal::CursorPage, model: WhopSDK::CourseLessonInteractionListItem, options: ) end |
#retrieve(id, request_options: {}) ⇒ WhopSDK::Models::CourseLessonInteraction
Retrieves a course lesson interaction by ID
Required permissions:
-
‘courses:read`
-
‘course_analytics:read`
22 23 24 25 26 27 28 29 |
# File 'lib/whop_sdk/resources/course_lesson_interactions.rb', line 22 def retrieve(id, params = {}) @client.request( method: :get, path: ["course_lesson_interactions/%1$s", id], model: WhopSDK::CourseLessonInteraction, options: params[:request_options] ) end |