Classroom hizmeti, Apps Komut Dosyası'nda Google Classroom API'yi kullanmanıza olanak tanır. Bu API, yöneticilere, öğretmenlere ve öğrencilere kurslarını ve listelerini görüntüleme ve yönetme olanağı sunar.
Referans
Bu hizmet hakkında ayrıntılı bilgi için Google Classroom API'nin referans dokümanlarına bakın.
Apps Komut Dosyası'ndaki tüm gelişmiş hizmetler gibi Classroom hizmeti de herkese açık API ile aynı nesneleri, yöntemleri ve parametreleri kullanır. Daha fazla bilgi için Metod imzaları nasıl belirlenir? başlıklı makaleyi inceleyin.
/** * Lists 10 course names and IDs. */functionlistCourses(){/** * @see https://developers.google.com/classroom/reference/rest/v1/courses/list */constoptionalArgs={pageSize:10// Use other query parameters here if needed.};try{constresponse=Classroom.Courses.list(optionalArgs);constcourses=response.courses;if(!courses||courses.length===0){console.log('Nocoursesfound.');return;}// Print the course names and IDs of the available courses.for(constcourseincourses){console.log('%s(%s)',courses[course].name,courses[course].id);}}catch(err){// TODO (developer)- Handle Courses.list() exception from Classroom APIconsole.log('Failedwitherror%s',err.message);}}
[[["Anlaması kolay","easyToUnderstand","thumb-up"],["Sorunumu çözdü","solvedMyProblem","thumb-up"],["Diğer","otherUp","thumb-up"]],[["İhtiyacım olan bilgiler yok","missingTheInformationINeed","thumb-down"],["Çok karmaşık / çok fazla adım var","tooComplicatedTooManySteps","thumb-down"],["Güncel değil","outOfDate","thumb-down"],["Çeviri sorunu","translationIssue","thumb-down"],["Örnek veya kod sorunu","samplesCodeIssue","thumb-down"],["Diğer","otherDown","thumb-down"]],["Son güncelleme tarihi: 2024-12-21 UTC."],[[["The Google Classroom API within Apps Script allows admins, teachers, and students to manage courses and rosters."],["This is an advanced service requiring prior enabling and provides functionalities mirroring the public API."],["Comprehensive documentation, support resources, and sample code are available for guidance and troubleshooting."],["You can find sample code demonstrating functionalities like listing the user's accessible courses."]]],[]]