Google Classroom ऐड-ऑन अब आम तौर पर डेवलपर के लिए उपलब्ध हैं! ज़्यादा जानकारी के लिए, कृपया
ऐड-ऑन दस्तावेज़ देखें.
AddOnContext
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
किसी खास पोस्ट के संदर्भ में, Classroom के ऐड-ऑन के लिए अटैचमेंट से जुड़ा मेटाडेटा.
JSON के काेड में दिखाना |
{
"courseId": string,
"postId": string,
"itemId": string,
"supportsStudentWork": boolean,
// Union field context can be only one of the following:
"studentContext": {
object (StudentContext )
},
"teacherContext": {
object (TeacherContext )
}
// End of list of possible types for union field context .
} |
फ़ील्ड |
courseId |
string
इम्यूटेबल. कोर्स का आइडेंटिफ़ायर.
|
postId (deprecated) |
string
इम्यूटेबल. इस सुविधा के इस्तेमाल पर रोक लगा दी गई है. इसके बजाय, itemId का इस्तेमाल करें.
|
itemId |
string
इम्यूटेबल. उस Announcement , CourseWork या CourseWorkMaterial का आइडेंटिफ़ायर जिससे अटैचमेंट जुड़ा है.
|
supportsStudentWork |
boolean
ज़रूरी नहीं. पोस्ट में, शिक्षक को छात्र-छात्राओं का काम और उन्हें दिए गए ग्रेड देखने की अनुमति है या नहीं.
|
यूनियन फ़ील्ड context . context इनमें से कोई एक हो सकता है:
|
studentContext |
object (StudentContext )
छात्र या छात्रा के तौर पर अनुरोध करने वाले उपयोगकर्ता की भूमिका से जुड़ा ऐड-ऑन कॉन्टेक्स्ट. इसकी मौजूदगी का मतलब है कि अनुरोध करने वाला उपयोगकर्ता, कोर्स में छात्र है.
|
teacherContext |
object (TeacherContext )
अनुरोध करने वाले उपयोगकर्ता की शिक्षक की भूमिका से जुड़ा ऐड-ऑन कॉन्टेक्स्ट. इसकी मौजूदगी से पता चलता है कि अनुरोध करने वाला उपयोगकर्ता, कोर्स में शिक्षक है.
|
StudentContext
अगर अनुरोध करने वाला उपयोगकर्ता छात्र है, तो भूमिका के हिसाब से कॉन्टेक्स्ट.
JSON के काेड में दिखाना |
{
"submissionId": string
} |
फ़ील्ड |
submissionId |
string
उपयोगकर्ता के सबमिशन आईडी का इस्तेमाल, ग्रेड पासबैक के लिए करने का अनुरोध करना. साथ ही, शिक्षक को छात्र-छात्रा का काम दिखाते समय, छात्र-छात्रा की पहचान करने के लिए भी इसका इस्तेमाल किया जा सकता है. यह तब सेट होता है, जब supportsStudentWork true हो.
|
TeacherContext
इस टाइप में कोई फ़ील्ड नहीं है.
अगर अनुरोध करने वाला उपयोगकर्ता शिक्षक है, तो भूमिका के हिसाब से कॉन्टेक्स्ट.
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-07-25 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-07-25 (UTC) को अपडेट किया गया."],[],[],null,["# AddOnContext\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n- [StudentContext](#StudentContext)\n - [JSON representation](#StudentContext.SCHEMA_REPRESENTATION)\n- [TeacherContext](#TeacherContext)\n\nAttachment-relevant metadata for Classroom add-ons in the context of a specific post.\n\n| JSON representation |\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"courseId\": string, \"postId\": string, \"itemId\": string, \"supportsStudentWork\": boolean, // Union field `context` can be only one of the following: \"studentContext\": { object (/workspace/classroom/reference/rest/v1/AddOnContext#StudentContext) }, \"teacherContext\": { object (/workspace/classroom/reference/rest/v1/AddOnContext#TeacherContext) } // End of list of possible types for union field `context`. } ``` |\n\n| Fields ||\n|---------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `courseId` | `string` Immutable. Identifier of the course. |\n| `postId` **(deprecated)** | `string` | This item is deprecated! Immutable. Deprecated, use `itemId` instead. |\n| `itemId` | `string` Immutable. Identifier of the `Announcement`, `CourseWork`, or `CourseWorkMaterial` under which the attachment is attached. |\n| `supportsStudentWork` | `boolean` Optional. Whether the post allows the teacher to see student work and passback grades. |\n| Union field `context`. `context` can be only one of the following: ||\n| `studentContext` | `object (`[StudentContext](/workspace/classroom/reference/rest/v1/AddOnContext#StudentContext)`)` Add-on context corresponding to the requesting user's role as a student. Its presence implies that the requesting user is a student in the course. |\n| `teacherContext` | `object (`[TeacherContext](/workspace/classroom/reference/rest/v1/AddOnContext#TeacherContext)`)` Add-on context corresponding to the requesting user's role as a teacher. Its presence implies that the requesting user is a teacher in the course. |\n\nStudentContext\n--------------\n\nRole-specific context if the requesting user is a student.\n\n| JSON representation |\n|------------------------------------|\n| ``` { \"submissionId\": string } ``` |\n\n| Fields ||\n|----------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `submissionId` | `string` Requesting user's submission id to be used for grade passback and to identify the student when showing student work to the teacher. This is set exactly when `supportsStudentWork` is `true`. |\n\nTeacherContext\n--------------\n\nThis type has no fields.\nRole-specific context if the requesting user is a teacher."]]