私はGoogleの教室とPythonを統合しています。下のコースでクラスワークを作成するには、コードがうまくいきます。参照:ここで私はクラスの少数の生徒に割り当てていないすべてを作成したいhttps://developers.google.com/classroom/guides/manage-courseworkGoogle Classroom APIでの個別の割り当て
courseWork = {
'title': 'sample assignment',
'description': 'Read the article about ant colonies and complete the quiz.',
'materials': [
{'link': { 'url': 'http://example.com/ant-colonies' }}
],
'workType': 'ASSIGNMENT',
'state': 'PUBLISHED',
}
courseWork = service.courses().courseWork().create(
courseId='<course ID or alias>', body=courseWork).execute()
print('Assignment created with ID {0}'.format(courseWork.get('id')))
。これどうやってするの?