Returns an announcement.

gc_courses_announcements_get(courseId, id)

Arguments

courseId

Identifier of the course

id

Identifier of the announcement

Details

This method returns the following error codes:

  • PERMISSION_DENIED if the requesting user is not permitted to access therequested course or announcement, or for access errors.

  • INVALID_ARGUMENT if the request is malformed.

  • NOT_FOUND if the requested course or announcement does not exist.

Authentication scopes used by this function are:

  • https://www.googleapis.com/auth/classroom.announcements

  • https://www.googleapis.com/auth/classroom.announcements.readonly

Set options(googleAuthR.scopes.selected = c("https://www.googleapis.com/auth/classroom.announcements", "https://www.googleapis.com/auth/classroom.announcements.readonly") Then run googleAuthR::gar_auth() to authenticate. See gar_auth for details.

See also