uw_canvas/analytics.py
def get_statistics_by_account(self, account_id, term_id):
        """
        Returns statistics for the given account_id and term_id.

        https://canvas.instructure.com/doc/api/analytics.html#method.analytics_api.department_statistics
        """
        url = ("/api/v1/accounts/sis_account_id:%s/analytics/"
               "terms/sis_term_id:%s/statistics.json") % (account_id, term_id)
        return self._get_resource(url)
def get_statistics_by_account(self, account_id, term_id):
        """
        Returns statistics for the given account_id and term_id.

        https://canvas.instructure.com/doc/api/analytics.html#method.analytics_api.department_statistics
        """
        url = ("/api/v1/accounts/sis_account_id:%s/analytics/"
               "terms/sis_term_id:%s/statistics.json") % (account_id, term_id)
        return self._get_resource(url)
Returns statistics for the given account_id and term_id.

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