সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
কুইকস্টার্ট ব্যাখ্যা করে যে কীভাবে একটি অ্যাপ সেট আপ করতে হয় এবং চালাতে হয় যেটি একটি Google Workspace API কল করে।
প্রমাণীকরণ এবং অনুমোদনের প্রবাহের কিছু বিবরণ পরিচালনা করতে Google Workspace কুইকস্টার্ট এপিআই ক্লায়েন্ট লাইব্রেরি ব্যবহার করে। আমরা সুপারিশ করি যে আপনি আপনার নিজের অ্যাপের জন্য ক্লায়েন্ট লাইব্রেরি ব্যবহার করুন। এই কুইকস্টার্ট একটি সরলীকৃত প্রমাণীকরণ পদ্ধতি ব্যবহার করে যা একটি পরীক্ষার পরিবেশের জন্য উপযুক্ত। একটি উত্পাদন পরিবেশের জন্য, আমরা আপনার অ্যাপের জন্য উপযুক্ত অ্যাক্সেসের শংসাপত্রগুলি বেছে নেওয়ার আগে প্রমাণীকরণ এবং অনুমোদন সম্পর্কে শেখার পরামর্শ দিই৷
/** * Lists 10 course names and ids. */functionlistCourses(){/** here pass pageSize Query parameter as argument to get maximum number of result * @see https://developers.google.com/classroom/reference/rest/v1/courses/list */constoptionalArgs={pageSize:10// Use other parameter here if needed};try{// call courses.list() method to list the courses in classroomconstresponse=Classroom.Courses.list(optionalArgs);constcourses=response.courses;if(!courses||courses.length===0){console.log('Nocoursesfound.');return;}// Print the course names and IDs of the coursesfor(constcourseofcourses){console.log('%s(%s)',course.name,course.id);}}catch(err){// TODO (developer)- Handle Courses.list() exception from Classroom API// get errors like PERMISSION_DENIED/INVALID_ARGUMENT/NOT_FOUNDconsole.log('Failedwitherror%s',err.message);}}
Save এ ক্লিক করুন .
শিরোনামহীন প্রজেক্টে ক্লিক করুন, Quickstart টাইপ করুন এবং Rename এ ক্লিক করুন।
স্ক্রিপ্ট কনফিগার করুন
Google Classroom API সক্ষম করুন
অ্যাপস স্ক্রিপ্ট প্রকল্প খুলুন।
এডিটরcode ক্লিক করুন।
পরিষেবাগুলির পাশে, একটি পরিষেবা add করুন ক্লিক করুন৷
Google Classroom API নির্বাচন করুন এবং Add এ ক্লিক করুন।
নমুনা চালান
Apps স্ক্রিপ্ট এডিটরে, Run এ ক্লিক করুন।
আপনি যখন প্রথমবার নমুনা চালান, এটি আপনাকে অ্যাক্সেস অনুমোদন করতে অনুরোধ করে:
অনুমতি পর্যালোচনা ক্লিক করুন.
একটি অ্যাকাউন্ট চয়ন করুন.
Allow এ ক্লিক করুন।
স্ক্রিপ্টের এক্সিকিউশন লগ উইন্ডোর নীচে প্রদর্শিত হবে।
[[["সহজে বোঝা যায়","easyToUnderstand","thumb-up"],["আমার সমস্যার সমাধান হয়েছে","solvedMyProblem","thumb-up"],["অন্যান্য","otherUp","thumb-up"]],[["এতে আমার প্রয়োজনীয় তথ্য নেই","missingTheInformationINeed","thumb-down"],["খুব জটিল / অনেক ধাপ","tooComplicatedTooManySteps","thumb-down"],["পুরনো","outOfDate","thumb-down"],["অনুবাদ সংক্রান্ত সমস্যা","translationIssue","thumb-down"],["নমুনা / কোড সংক্রান্ত সমস্যা","samplesCodeIssue","thumb-down"],["অন্যান্য","otherDown","thumb-down"]],["2024-12-21 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["This quickstart guide demonstrates how to create a Google Apps Script that interacts with the Google Classroom API to list courses."],["Before running the script, you need a Google for Education account, access to Google Drive, and must enable the Google Classroom API within the script."],["The script retrieves and displays the names and IDs of up to 10 courses from your Google Classroom account, requiring authorization upon its first execution."],["For production environments, refer to the provided resources for authentication, authorization, and troubleshooting guidance."],["Users can explore further by consulting the advanced services documentation, troubleshooting guide, and the Classroom API reference."]]],[]]