Function fetch_course_activities

  • Fetches the activities of a course from Moodle.

    Parameters

    • fetch: ((input, init?) => Promise<Response>)

      The fetch function to use.

        • (input, init?): Promise<Response>
        • Parameters

          • input: RequestInfo | URL
          • Optional init: RequestInit

          Returns Promise<Response>

    • base: string

      The base URL of the Moodle site.

    • id: number

      The ID of the course to fetch activities for.

    Returns Promise<Record<string, Partial<Record<ActivityType, ActivityMeta[]>>>>

    An object containing the activities grouped by section and type.

Generated using TypeDoc