Open bertrandgorge opened 2 years ago
The snippet shown in https://developers.google.com/classroom/guides/manage-users#php is wrong : the scope should be https://www.googleapis.com/auth/classroom.rosters and not https://www.googleapis.com/auth/classroom.profile.photos
NB : In the Python version of the same snippet, the scope is not shown at all...
https://github.com/googleworkspace/php-samples/blob/77b210b0e5c155bc8b6f3b2aa4bc72151a0c42cb/classroom/snippets/src/ClassroomAddTeacher.php#L31
The snippet shown in https://developers.google.com/classroom/guides/manage-users#php is wrong : the scope should be https://www.googleapis.com/auth/classroom.rosters and not https://www.googleapis.com/auth/classroom.profile.photos
NB : In the Python version of the same snippet, the scope is not shown at all...
https://github.com/googleworkspace/php-samples/blob/77b210b0e5c155bc8b6f3b2aa4bc72151a0c42cb/classroom/snippets/src/ClassroomAddTeacher.php#L31