src/google-classroom-extractor/edfi_google_classroom_extractor/api/teachers.py
def request_teachers(
    resource: Optional[Resource], course_id: str
) -> List[Dict[str, str]]:
    """
    Fetch Teachers API data for a course and return a list of teacher data

    Parameters
    ----------
    resource: Optional[Resource]
        a Google Classroom SDK Resource
    course_ids: str
        a Google Classroom course id as a string

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

    if resource is None:
        return []

    return call_api(
        cast(ResourceType, resource).courses().teachers().list,
        {"courseId": course_id},
        "teachers",
    )

    Fetch Teachers API data for a course and return a list of teacher data

    Parameters
    ----------
    resource: Optional[Resource]
        a Google Classroom SDK Resource
    course_ids: str
        a Google Classroom course id as a string

    Returns
    -------
    List[Dict[str, str]]
        a list of Google Classroom Teacher resources,
            see https://developers.google.com/classroom/reference/rest/v1/courses.teachers
    
Fetch Teachers API data for a course and return a list of teacher data
Parameters

Optional[Resource]
a Google Classroom SDK Resource
course_ids: str
a Google Classroom course id as a string

Returns


Fetch Teachers API data for a course and return a list of teacher data Parameters Optional [ Resource ] a Google Classroom SDK Resource course_ids : str a Google Classroom course id as a string Returns
def request_teachers(
    resource: Optional[Resource], course_id: str
) -> List[Dict[str, str]]:
    if resource is None:
        return []
    return call_api(
        cast(ResourceType, resource).courses().teachers().list,
        {"courseId": course_id},
        "teachers",
    )
def request_teachers ( resource : Optional [ Resource ] , course_id : str ) -> List [ Dict [ str , str ] ] : if resource is None : return [ ] return call_api ( cast ( ResourceType , resource ) . courses ( ) . teachers ( ) . list , { "courseId" : course_id } , "teachers" , )
Fetch Teachers API data for a course and return a list of teacher data
Parameters
Fetch Teachers API data for a course and return a list of teacher data Parameters
"""
    Fetch Teachers API data for a course and return a list of teacher data

    Parameters
    ----------
    resource: Optional[Resource]
        a Google Classroom SDK Resource
    course_ids: str
        a Google Classroom course id as a string

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