canvas::API method course activities (public)

 <instance of canvas::API[i]> course activities [ -page page ] \
    [ -per_page per_page ] [ -max_entries max_entries ] course_id

Defined in packages/xooauth/tcl/canvas-procs.tcl

Returns the paginated Returns the current user's course-specific activity stream, paginated. Details: https://canvas.instructure.com/doc/api/courses.html

Switches:
-page (optional, defaults to "1")
Return the nth page of the result set
-per_page (optional, defaults to "10")
Return this number of entries per page
-max_entries (optional)
perform potentially multiple requests until the requested number of entries can be returned.
Parameters:
course_id (required, integer)

Testcases:
No testcase defined.
Source code:
set r [:request -method GET -token ${:token}  -url /courses/${course_id}/activity_stream?[:params {page per_page}]]
return [:paginated_result_list -max_entries $max_entries $r 200]
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: