src/google-classroom-extractor/edfi_google_classroom_extractor/api/submissions.py
def request_submissions(
    resource: Optional[Resource], course_id: str
) -> List[Dict[str, str]]:
    """
    Fetch Student Submissions API data for all submissions for a coursework,
    and return a list of submissions data

    Parameters
    ----------
    resource: Optional[Resource]
        a Google Classroom SDK Resource

    Returns
    -------
    List[Dict[str, str]]
        a list of Google Classroom StudentSubmissions resources,
            see https://developers.google.com/classroom/reference/rest/v1/courses.courseWork.studentSubmissions
    """

    if resource is None:
        return []

    return call_api(
        cast(ResourceType, resource).courses().courseWork().studentSubmissions().list,
        {"courseId": course_id, "courseWorkId": "-"},
        "studentSubmissions",
    )

    Fetch Student Submissions API data for all submissions for a coursework,
    and return a list of submissions data

    Parameters
    ----------
    resource: Optional[Resource]
        a Google Classroom SDK Resource

    Returns
    -------
    List[Dict[str, str]]
        a list of Google Classroom StudentSubmissions resources,
            see https://developers.google.com/classroom/reference/rest/v1/courses.courseWork.studentSubmissions
    
Fetch Student Submissions API data for all submissions for a coursework,
and return a list of submissions data

Parameters

Optional[Resource]
a Google Classroom SDK Resource

Returns


Fetch Student Submissions API data for all submissions for a coursework and return a list of submissions data Parameters Optional [ Resource ] a Google Classroom SDK Resource Returns
def request_submissions(
    resource: Optional[Resource], course_id: str
) -> List[Dict[str, str]]:
    if resource is None:
        return []
    return call_api(
        cast(ResourceType, resource).courses().courseWork().studentSubmissions().list,
        {"courseId": course_id, "courseWorkId": "-"},
        "studentSubmissions",
    )
def request_submissions ( resource : Optional [ Resource ] , course_id : str ) -> List [ Dict [ str , str ] ] : if resource is None : return [ ] return call_api ( cast ( ResourceType , resource ) . courses ( ) . courseWork ( ) . studentSubmissions ( ) . list , { "courseId" : course_id , "courseWorkId" : "-" } , "studentSubmissions" , )
Fetch Student Submissions API data for all submissions for a coursework,
and return a list of submissions data
Fetch Student Submissions API data for all submissions for a coursework and return a list of submissions data
"""
    Fetch Student Submissions API data for all submissions for a coursework,
    and return a list of submissions data

    Parameters
    ----------
    resource: Optional[Resource]
        a Google Classroom SDK Resource

    Returns
    -------
    List[Dict[str, str]]
        a list of Google Classroom StudentSubmissions resources,
            see https://developers.google.com/classroom/reference/rest/v1/courses.courseWork.studentSubmissions
    """
resource
Optional[Resource]
course_id
str