uw_canvas/analytics.py
def get_student_assignments_for_sis_course_id_and_canvas_user_id(
            self, sis_course_id, user_id):
        """
        Returns student assignment data for the given user_id and course_id.

        https://canvas.instructure.com/doc/api/analytics.html#method.analytics_api.student_in_course_assignments
        """

        url = "/api/v1/courses/%s/analytics/users/%s/assignments.json" % (
            self._sis_id(sis_course_id, sis_field="course"), user_id)
        return self._get_resource(url)
def get_student_assignments_for_sis_course_id_and_canvas_user_id(
            self, sis_course_id, user_id):
        """
        Returns student assignment data for the given user_id and course_id.

        https://canvas.instructure.com/doc/api/analytics.html#method.analytics_api.student_in_course_assignments
        """

        url = "/api/v1/courses/%s/analytics/users/%s/assignments.json" % (
            self._sis_id(sis_course_id, sis_field="course"), user_id)
        return self._get_resource(url)
def get_student_assignments_for_sis_course_id_and_canvas_user_id ( self , sis_course_id , user_id ) : url = "/api/v1/courses/%s/analytics/users/%s/assignments.json" % ( self . _sis_id ( sis_course_id , sis_field = "course" ) , user_id ) return self . _get_resource ( url )
Returns student assignment data for the given user_id and course_id.

        https://canvas.instructure.com/doc/api/analytics.html#method.analytics_api.student_in_course_assignments
Returns student assignment data for the given user_id and course_id .