googleworkspace / php-samples

PHP samples for Google Workspace APIs
Apache License 2.0
287 stars 348 forks source link

The scope for this snippet is wrong #122

Open bertrandgorge opened 2 years ago

bertrandgorge commented 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